Skip to content

StackLayout + Label with horizontal-align renders differently on iOS and Android #2107

@NickIliev

Description

@NickIliev

Tested on iOS 9.3 and Android API 23
When we have StackLayout with Label as a child and we set horizontal-align:center the result is that the Label position renders differently on the different platforms.
Code to reproduce the issue:

<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo">
  <StackLayout>
      <Label text="Label" fontSize="24"/> 
      <Button text="TAP" tap="" />
  </StackLayout>
</Page>
StackLayout {
    horizontal-align: center;
    width: 100%;
    height: 100%;
}

result
screen shot 2016-05-13 at 3 46 07 pm

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