-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScrollView content needs layout when ScrollView.InvalidateMeasure is …
…called (#17639) ### Description of Change When `ScrollView.Content` changes its alignment (like `HorizontalOptions` change from `Start` to `End`), then the `ScrollView`'s layout needs to properly update. It worked on Android and Mac/iOS, but Windows would not update layout until the window was resized. After `HorizontalOptions` changed on the content, Windows would call `InvalidateMeasure` on the WinUI `ScrollView`, but the child content didn't get updated. This change makes sure that the content also gets measured. This fix is helpful for XAML Hot Reload, so the layout will update as `HorizontalOptions` changes. ### Issues Fixed Fixes #14377
- Loading branch information
Showing
3 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters