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:
Родитель
b51a99c73c
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче