Skip to content

Commit

Permalink
Remount children in scrollView if layout changes
Browse files Browse the repository at this point in the history
Summary: changelog: [internal]

Reviewed By: hramos

Differential Revision: D30603617

fbshipit-source-id: bc189d4a0a997202e6b2cd5314b997395bcdf7b2
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Aug 29, 2021
1 parent b51a99c commit 53c6494
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ - (void)dealloc
[self.scrollViewDelegateSplitter removeAllDelegates];
}

- (void)layoutSubviews
{
[super layoutSubviews];

if (_subviewClippingEnabled) {
[self _remountChildren];
}
}

- (RCTGenericDelegateSplitter<id<UIScrollViewDelegate>> *)scrollViewDelegateSplitter
{
return ((RCTEnhancedScrollView *)_scrollView).delegateSplitter;
Expand Down

0 comments on commit 53c6494

Please sign in to comment.