dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Label line height doesn't work on android #24504

Open NanthiniMahalingam opened 2 months ago

NanthiniMahalingam commented 2 months ago

Description

In android platform, label updated with same size for all the line height values.

Steps to Reproduce

  1. Run the sample in android platform.
  2. Compare the android output with windows platform output.

Windows image

Android image

Link to public reproduction project repository

https://github.com/NanthiniMahalingam/LabelLineHeightIssue

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

hansmbakker commented 2 months ago

@NanthiniMahalingam your Labels are single-line, and in MAUI on Android the LineHeight only affects Labels that are wrapped on multiple lines:

From the documentation:

On Android, the Label.LineHeight property only changes the line height of text that wraps onto multiple lines.

However, I agree that this is super developer-unfriendly - especially because this does not behave the same cross-platform. Please upvote / add your comments to #17741 because the issue here is that this is "intended behavior" even though it is very unpleasant to work with.