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.26k stars 1.76k forks source link

Android: Certain span sizes create unwanted vertical shift in label #18482

Open sjorsmiltenburg opened 1 year ago

sjorsmiltenburg commented 1 year ago

Description

In my app I am dynamically underlining the text of a label. For this I update the FormattedText property with different spans. I am noticing weird behaviour on Android, where certain span sections produce extra vertical space. I can't reason about the cause as it seems almost random.

I included a reproducable sample that shows the problem.

Sidenote: Lately it almost feels like I'm a fulltime bughunter for MAUI.. not fun!! Can't we get paid for this?

Steps to Reproduce

open repo, hit bug12 button read text on the control keep hitting the button

Link to public reproduction project repository

https://github.com/sjorsmiltenburg/maui_bugs

Version with bug

8.0.0-rc.2.9373

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

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.