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

Right grid padding seems to be doubled on smaller screen size in iOS #18067

Open danwinp opened 1 year ago

danwinp commented 1 year ago

Description

The right grid padding seems to be doubled visually on smaller screen sized devices in iOS (Tested in iPhone SE & iPhone 12 mini). I have used breakpoints to inspect what the padding values of the grid is, and it seems correct. image

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. Add content that includes a combination of Grids, Labels, Button and Picker
  3. Set the Grid's padding containing all the controls
  4. Deploy the app to a smaller screen device on iOS (iPhone SE or iPhone 12 mini)

Expected outcome: Padding is applied correctly Actual outcome: Right padding on Grid seems to be doubled

I've provided a public repo that can replicate this issue.

Link to public reproduction project repository

https://github.com/danwinp/NetMAUIIssues/blob/issues/GridPaddingIssue/PaddingGridIssue/PaddingGridIssue/MainPage.xaml

Version with bug

8.0.0-rc.1.9171

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 15 and up

Did you find any workaround?

No response

Relevant log output

No response

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 4.0(8.0.0-rc.2.9373). Repro on iPhone SE, not repro on iPhone 14 and iPhone 14 Pro Max with below Project: PaddingGridIssue.zip

image

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.