mirror of
https://github.com/status-im/react-native.git
synced 2025-02-14 18:36:35 +00:00
[ReactNative] Fix RCTScrollView setContentInset
This commit is contained in:
parent
7b4ea51bf0
commit
736d860571
@ -315,8 +315,14 @@ CGFloat const ZINDEX_STICKY_HEADER = 50;
|
||||
|
||||
- (void)setContentInset:(UIEdgeInsets)contentInset
|
||||
{
|
||||
CGPoint contentOffset = _scrollView.contentOffset;
|
||||
|
||||
_contentInset = contentInset;
|
||||
[self setNeedsLayout];
|
||||
[RCTView autoAdjustInsetsForView:self
|
||||
withScrollView:_scrollView
|
||||
updateOffset:NO];
|
||||
|
||||
_scrollView.contentOffset = contentOffset;
|
||||
}
|
||||
|
||||
- (void)scrollToOffset:(CGPoint)offset
|
||||
|
Loading…
x
Reference in New Issue
Block a user