Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScrollView:
contentOffset
validatation now respects contentInset
Summary: > The property contentInset can change the maximum and minimum values of the content offset to allow scrolling outside of the scrollable area. Its type is UIEdgeInsets, which consists of 4 numbers: {top, left, bottom, right}. When you introduce an inset, you change the range of the content offset. For example, setting the content inset to have a value of 10 for its top value allows the content offset’s y value to reach -10. This introduces padding around the scrollable area. ( https://www.objc.io/issues/3-views/scroll-view/ ) See also: #15395 Reviewed By: mmmulani Differential Revision: D5607192 fbshipit-source-id: 1acd6a84e2bcfefc6e82861cfbdfe6247d0e4264
- Loading branch information
950c2b2
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.
Hi @shergin, I've installed RN 0.49.1, on initial render the offset doesn't look right. There seems to be an offset on top and left that was unexpected when setting these properties on a FlatList:
Changing to this instead seems to fix the issue:
950c2b2
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.
@stage88 Oh my, shame on me. 😢 😢 😢
Thank you so much! I will fix it soon. Or you can create PR and I will land it asap.
950c2b2
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.
@stage88 Oh, that was already fixed in 64be883.