-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[iOS] Fix scrollview over bounds of content size #23427
Closed
Closed
Conversation
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
facebook-github-bot
added
the
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
label
Feb 13, 2019
[iOS] Fix scrollview offset out of content size Take contentInset into account
zhongwuzw
force-pushed
the
fix_scrollview_overbounds
branch
from
February 13, 2019 13:41
0a799f7
to
53a5dc7
Compare
zhongwuzw
changed the title
Fix scrollview overbounds
[iOS] Fix scrollview over bounds of content size
Feb 13, 2019
cpojer
approved these changes
Feb 21, 2019
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!
facebook-github-bot
added
the
Import Started
This pull request has been imported. This does not imply the PR has been approved.
label
Feb 21, 2019
facebook-github-bot
approved these changes
Feb 21, 2019
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 |
mbardauskas
pushed a commit
to mbardauskas/react-native
that referenced
this pull request
Feb 21, 2019
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
hramos
removed
Import Started
This pull request has been imported. This does not imply the PR has been approved.
labels
Feb 23, 2019
grabbou
pushed a commit
that referenced
this pull request
Mar 22, 2019
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
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Labels
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Component: ScrollView
Merged
This PR has been merged.
Platform: iOS
iOS applications.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 .