xamarin/Xamarin.Forms

Label LineHeight does not render the same on iOS and Android

Ouverte

#6 046 ouverte le 29 avr. 2019

 (12 commentaires) (1 réaction) (0 personne assignée)C# (1 926 forks)batch import
e/6 :clock6:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur