-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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] Fix scrollview over bounds of content size #23427
Conversation
[iOS] Fix scrollview offset out of content size Take contentInset into account
0a799f7
to
53a5dc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@zhongwuzw merged commit 9c1c5a7 into |
Summary: Fix scrollview `offset` out of content size in iOS, Android uses `scrollTo` and `smoothScrollTo` which not have this issue. Fixes like facebook#13594 facebook#22768 facebook#19970 . [iOS] [Fixed] - Fixed scrollView offset out of content size. Pull Request resolved: facebook#23427 Differential Revision: D14162663 Pulled By: cpojer fbshipit-source-id: a95371c8d703b6d5f604af0072f86c01c2018f4a
Summary: Fix scrollview `offset` out of content size in iOS, Android uses `scrollTo` and `smoothScrollTo` which not have this issue. Fixes like #13594 #22768 #19970 . [iOS] [Fixed] - Fixed scrollView offset out of content size. Pull Request resolved: #23427 Differential Revision: D14162663 Pulled By: cpojer fbshipit-source-id: a95371c8d703b6d5f604af0072f86c01c2018f4a
Summary
Fix scrollview
offset
out of content size in iOS, Android usesscrollTo
andsmoothScrollTo
which not have this issue.Fixes like #13594 #22768 #19970 .
Changelog
[iOS] [Fixed] - Fixed scrollView offset out of content size.
Test Plan
Assign scrollView a big offset which greater than content size plus content inset, we should keep offset in the area of content size plus content inset.
We can use reproduce example in #13594 or #22768 .