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 ScrollView on Android and Windows from entering a bad layout state #5897

Merged
merged 2 commits into from
Apr 8, 2022

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Apr 8, 2022

Description of Change

When no padding/margin are specified, the Windows and Android ScrollViews can reach a layout state where requests for subsequent layout updates are ignored. These changes prevent that from happening.

Issues Fixed

Fixes #5717

…state

when no padding/margin are specified
Fixes #5717
@jsuarezruiz jsuarezruiz added t/bug Something isn't working area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels Apr 8, 2022
@@ -24,6 +24,7 @@ protected override void ConnectHandler(MauiScrollView platformView)
{
base.ConnectHandler(platformView);
platformView.ScrollChange += ScrollChange;
platformView.CrossPlatformArrange = VirtualView.CrossPlatformArrange;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we missing a null set on the detach? How do we prevent memory leaks with this?

Or can't this happen in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just missed it. Fixed.

@AndreiMaz
Copy link

@hartez @jsuarezruiz What can we expect a new RC with the fix? We cannot start development until it works fine

@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@Eilon Eilon added area-controls-scrollview ScrollView and removed area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-scrollview ScrollView t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Label width doesn't get updated with text
5 participants