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

Don't remeasure the HScrollView during the layout pass #20998

Merged
merged 2 commits into from Mar 5, 2024

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Mar 4, 2024

Description of Change

#19349 created an issue with nested scrollviews that was causing the layout calls to thrash. Because we were calling "Measure" on the hScroll during the layout pass, this would reset the height/width on the frame during layout, which would then cause "requestLayout" to schedule a "requestLayout" on the UI thread. Which would then cause the loop to trigger again.

This PR attempts keep the measures with the measures and the layouts with the layouts.

Issues Fixed

Fixes #20920

@PureWeen PureWeen changed the title Sample Don't remeasure the HScrollView during the layout pass Mar 4, 2024
@PureWeen PureWeen marked this pull request as ready for review March 4, 2024 23:03
@PureWeen PureWeen requested a review from a team as a code owner March 4, 2024 23:03
@rmarinho rmarinho merged commit 3ae88d4 into main Mar 5, 2024
45 of 47 checks passed
@rmarinho rmarinho deleted the fix_nested_scrollview branch March 5, 2024 09:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression Bug. Nested ScrollView does not work in Android. Works in iOS.
2 participants