xamarin/Xamarin.Forms

Label LineHeight does not render the same on iOS and Android

Open

#6,046 opened on Apr 29, 2019

 (12 comments) (1 reaction) (0 assignees)C# (1,926 forks)batch import
e/6 :clock6:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

If you change the default LineHeight on a Label, when text is wrapped, Android seems to be applying spacing between lines. On the other hand, iOS changes the height of each line, which creates unnecessary padding above the first line.

Steps to Reproduce

Run the attached repro on both platforms and notice that iOS line spacing is off. I'm not sure if this is the default behavior on iOS, but it'd be great to have consistency on both platforms.

Reproduction Link

App18776.zip

Contributor guide