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
21.98k stars 1.71k forks source link

[MAUI] I2_Spacing - Updating the vertical and horizontal spacing, the part of layout will change. #23305

Open kevinxufei opened 2 months ago

kevinxufei commented 2 months ago

Description

Updating the vertical and horizontal spacing, the part of layout will change.

Affected case: Vertical grid (HorizontalItemSpacing and VerticalItemSpacing) Horizontal grid (HorizontalItemSpacing and VerticalItemSpacing)

Note: 1.Swipe right (Horizontal grid) or scroll down (Vertical grid) to return the layout to normal. 2.The issue occurs when the maccatalyst window is displayed smaller (recorded below).

Steps to Reproduce

1.Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to iOS/Maccatalyst. 2.Navigate to 'I CollectionView' -> 'I2_Spacing' -> 'Horizontal grid for HorizontalItemSpacing and VerticalItemSpacing'. 3.Updating the vertical and horizontal spacing, the layout of the second column will change

Actual Behavior: Updating the vertical and horizontal spacing, the part of layout will change. iOS: Vertical grid (HorizontalItemSpacing and VerticalItemSpacing): q1 Horizontal grid (HorizontalItemSpacing and VerticalItemSpacing): q2 Maccatalyst: q3

Expected Behavior: Updating the vertical & horizontal spacing values. The spacing is changed, but the layout remains unchanged. image

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

Microsoft.Maui.Controls 8.0.70-ci.net8.24326.4

Is this a regression from previous behavior?

Not a regression, The issue also repro on 8.0.61& 8.0.3

Affected platforms

iOS, macOS

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.