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

AutoLayout wasn't arranging stretched children when in ScrollViewer #1023

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

carldebilly
Copy link
Member

Fixes #1022

Bugfix

What is the current behavior?

As described in the issue, a stretched child of an AutoLayout were not properly arranged when inside a ScrollViewer.

What is the new behavior?

When the finalSize is different than the one used to measure the element (which is the case in a ScrollViewer), it was incorrectly using the measured size instread of recalculating it using the finalSize.

PR Checklist

Please check if your PR fulfills the following requirements:

@carldebilly carldebilly force-pushed the dev/cdb/autolayout-in-scrollviewer branch from c715db0 to d9faac5 Compare January 31, 2024 19:57
@carldebilly
Copy link
Member Author

https://github.com/Mergifyio backport release/stable/5.1

Copy link
Contributor

mergify bot commented Jan 31, 2024

backport release/stable/5.1

✅ Backports have been created

@carldebilly carldebilly merged commit 464c2bd into main Jan 31, 2024
26 checks passed
@carldebilly carldebilly deleted the dev/cdb/autolayout-in-scrollviewer branch January 31, 2024 22:31
jeromelaban added a commit that referenced this pull request Feb 1, 2024
….1/pr-1023

AutoLayout wasn't arranging stretched children when in ScrollViewer (backport #1023)
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.

[AutoLayout] AutoLayout children won't stretch if AutoLayout is inside a ScrollViewer
3 participants