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:
Samuel Susla 2021-08-29 09:30:50 -07:00 коммит произвёл Facebook GitHub Bot
Родитель b51a99c73c
Коммит 53c6494615
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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;