-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Changing Grid.Row does not update layout until window is resized #20404
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releasepartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencesIssues impacting XAML Hot Reload experiencespartner/hot-reload-xaml-full-page-fixedIssues with XAML incremental hot reload that are fixed after a full page hot reloadIssues with XAML incremental hot reload that are fixed after a full page hot reloadpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I could only repro on Windows (WinUI). For the main page, if a Grid.Row changes for a child of the root grid, layout is not updated. Resizing the window can trigger the layout update.
While Grid.Row may not change through code usually, it will often change using XAML Hot Reload as the page is being designed.
Steps to Reproduce
- Download and open my test project from:
- https://github.com/spadapet/maui_bugs/tree/main/GridRowChanges
- If you clone the repo, it's: https://github.com/spadapet/maui_bugs.git
- Open the project GridRowChanges.sln in VS.
- Set debugger to Windows, then F5 to build and debug
- Click the "Toggle Grid Row" button, which is supposed to move the green box into the top grid cell. Nothing happens with layout:
- Resize the window, now layout is updated:
The second box should move as soon as the button is clicked, which happens on Android just fine.
Link to public reproduction project repository
https://github.com/spadapet/maui_bugs/tree/main/GridRowChanges
Version with bug
8.0.6
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
net8.0-windows10.0.19041.0
Did you find any workaround?
Resize the window or create other changes that force a layout update
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releasepartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencesIssues impacting XAML Hot Reload experiencespartner/hot-reload-xaml-full-page-fixedIssues with XAML incremental hot reload that are fixed after a full page hot reloadIssues with XAML incremental hot reload that are fixed after a full page hot reloadpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working


