mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remount children in scrollView if layout changes
Summary: changelog: [internal] Reviewed By: hramos Differential Revision: D30603617 fbshipit-source-id: bc189d4a0a997202e6b2cd5314b997395bcdf7b2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b51a99c73c
commit
53c6494615
@@ -133,6 +133,15 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
||||
[self.scrollViewDelegateSplitter removeAllDelegates];
|
||||
}
|
||||
|
||||
- (void)layoutSubviews
|
||||
{
|
||||
[super layoutSubviews];
|
||||
|
||||
if (_subviewClippingEnabled) {
|
||||
[self _remountChildren];
|
||||
}
|
||||
}
|
||||
|
||||
- (RCTGenericDelegateSplitter<id<UIScrollViewDelegate>> *)scrollViewDelegateSplitter
|
||||
{
|
||||
return ((RCTEnhancedScrollView *)_scrollView).delegateSplitter;
|
||||
|
||||
Reference in New Issue
Block a user