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

[iOS] Don't scroll more than the available scrollable space #13415

Merged
merged 2 commits into from
Feb 24, 2023
Merged

Conversation

rmarinho
Copy link
Member

@rmarinho rmarinho commented Feb 17, 2023

Description of Change

On iOS if you were trying to scroll more than the available scroll space it would still put the ContentOffset of the UIScrollView to the requested value. That would cause the content to sometimes disappear, it also didn't show the same UI as for example on Android.

With this change we clamp the value to the available scroll height/width.

Fixes #7373

Copy link
Contributor

@hartez hartez left a comment

Choose a reason for hiding this comment

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

Looks good, suggestions for making it a little clearer/faster.

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Feb 17, 2023
@Redth Redth merged commit af6bdec into main Feb 24, 2023
@Redth Redth deleted the fix-7373 branch February 24, 2023 17:56
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
@Eilon Eilon removed the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] Grid cannot be scrolled properly in a scroll view
7 participants