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

When minimumheightrequest is set on label, the label is not vertically centered in Windows #20208

Open last-Programmer opened 9 months ago

last-Programmer commented 9 months ago

Description

I added a flexlayout with 50 units of height and added a label child with minimumheightrequest with 39 units and verticaloptions is set to center and when i run the project the label is not vertically centered in the flexlayout

Steps to Reproduce

I added a flexlayout with 50 units as height and added a label child with minimumheightrequest with 39 units and verticaloptions is set to center and when i run the project the label is not vertically centered in the flexlayout

Link to public reproduction project repository

https://github.com/dotnet/maui/files/14076234/MauiAppMInHeightBug.zip

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No Workaround for this bug i am using

Relevant log output

No response

last-Programmer commented 9 months ago

Here is the sample project for reproducing

MauiAppMInHeightBug.zip

PureWeen commented 9 months ago

@last-Programmer does vertical text alignment fix this issue for you?

ghost commented 9 months 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.

last-Programmer commented 9 months ago

@PureWeen No it does not fix in windows. but it does work in android and ios.