Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent AutoLayout from causing an invalidation loop on WinUI #1138

Merged
merged 1 commit into from
May 16, 2024

Conversation

carldebilly
Copy link
Member

Fixes #1131

Bugfix

What is the current behavior?

In some situations, it was possible to crash the UI in WinUI, launching an invalidation loop.

What is the new behavior?

Now works properly on both WinUI and Uno. Child elements are not remeasured during arrange phase, we're just using their desired size to layout them.

PR Checklist

Please check if your PR fulfills the following requirements:

@carldebilly carldebilly merged commit d74db9d into main May 16, 2024
25 checks passed
@carldebilly carldebilly deleted the dev/cdb/autolayout/cycle-detected branch May 16, 2024 17:14
@carldebilly
Copy link
Member Author

@Mergifyio backport release/stable/6.0

Copy link
Contributor

mergify bot commented May 17, 2024

backport release/stable/6.0

✅ Backports have been created

jeromelaban added a commit that referenced this pull request May 17, 2024
….0/pr-1138

Prevent AutoLayout from causing an invalidation loop on WinUI (backport #1138)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layout cycle detected when resizing a view that has a NavigationView and TabBar
3 participants