Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label HorizontalTextAlignment="Center" not working in conjunction with LineHeight on iOS #4262

HenrikPihl opened this issue Oct 30, 2018 · 1 comment · Fixed by #4275


Copy link

commented Oct 30, 2018


HorizontalTextAlignment="Center" has no effect if LineHeight is assigned a value

Steps to Reproduce

  1. Create 2 labels

<Label HorizontalTextAlignment="Center" Text="This is center aligned&#x0a;line 2" />
<Label HorizontalTextAlignment="Center" LineHeight="1.5" Text="This should be center aligned&#x0a;line 2" />

Expected Behavior

Both labels center aligned

Actual Behavior

On Android both labels are center aligned
On iOS only the first label is center aligned

Basic Information

  • Version with issue:
  • Last known good version: N/A issue found when migrating from custom renderer
  • IDE: VS on Mac
  • Platform Target Frameworks:
    • iOS: 11.1
    • Android: 7.1
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:


Reproduction Link

@pauldipietro pauldipietro added this to New in Triage Oct 30, 2018


This comment has been minimized.

Copy link

commented Oct 30, 2018

Tested on iOS against 3.4 as well where this behavior occurs

@pauldipietro pauldipietro moved this from New to Ready For Work in Triage Oct 30, 2018

@PureWeen PureWeen added this to In Progress in v3.6.0 Nov 1, 2018

@samhouts samhouts removed this from Ready For Work in Triage Nov 2, 2018

@hartez hartez closed this in #4275 Nov 6, 2018

@PureWeen PureWeen moved this from In Progress to Done in v3.6.0 Nov 7, 2018

@samhouts samhouts removed this from Done in v3.6.0 Jan 3, 2019

@samhouts samhouts added this to In Progress in v3.5.0 Jan 11, 2019

@samhouts samhouts moved this from In Progress to Done in v3.5.0 Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.