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

iOS scaling differently than Android #21093

Open tylerwilson opened 8 months ago

tylerwilson commented 8 months ago

Description

I am working on a MAUI project, initially focused on Android, and it working very well. But when I try to build for iOS, things are not scaling / fitting properly. I was able to get a small test sample so you can see the issue and fix the issue, or tell me how to perhaps work around it.

Steps to Reproduce

Will need to run my sample. Will be uploading to a public repo.

Run on Android device, the buttons scale to fit the parent grid / contentview.

Ron on iOS, and you will see the buttons overlap the parent grid/contentview.

See here: Screenshot 2024-03-07 at 10 37 50 PM

Link to public reproduction project repository

https://github.com/tylerwilson/MauiSample

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17

Did you find any workaround?

Not as yet, hoping you could.

Relevant log output

No response

tylerwilson commented 7 months ago

Update: since updating to MAUI 8.0.10 or 8.0.14 this is broken on Android too, but worse.

It appears to me that the HeightProportional is being ignored. See the attached screenshots: screenshot-1712523686400 screenshot-1712523512853