xamarin/Xamarin.Forms

Label LineHeight does not render the same on iOS and Android

Aberta

#6.046 aberto em 29 de abr. de 2019

 (12 comentários) (1 reação) (0 responsável)C# (1.926 forks)batch import
e/6 :clock6:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métricas do repositório

Stars
 (5.644 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador