xamarin/Xamarin.Forms

Label LineHeight does not render the same on iOS and Android

开放

#6,046 创建于 2019年4月29日

 (12 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/6 :clock6:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南