Skip to content

Let child view overflow AbsoluteLayout parent on Android #2274

Closed
@terreb

Description

@terreb

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.0.0
  • Cross-platform modules: 2.0.0
  • Runtime(s): tns-android 2.0.0

Please tell us how to recreate the issue in as much detail as possible.

Please try to test the below markup on iOS and Android. You will notice that the child view overflows the parent on iOS, but not on Android. Expected behaviour: the child view should overflow the parent if the parent is AbsoluteLayout.

iOS:
screen shot 2016-06-08 at 6 56 41 pm

Android:
screen shot 2016-06-08 at 6 56 35 pm

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<Page xmlns="http://schemas.nativescript.org/tns.xsd" >
 <GridLayout>
    <AbsoluteLayout width="100" height="100" backgroundColor="green">
        <GridLayout width="100" height="100" backgroundColor="red" top="20" left="-20">
        </GridLayout>
    </AbsoluteLayout>
 </GridLayout>
</Page>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions