Skip to content

Commit 53c6494

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Remount children in scrollView if layout changes
Summary: changelog: [internal] Reviewed By: hramos Differential Revision: D30603617 fbshipit-source-id: bc189d4a0a997202e6b2cd5314b997395bcdf7b2
1 parent b51a99c commit 53c6494

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ - (void)dealloc
133133
[self.scrollViewDelegateSplitter removeAllDelegates];
134134
}
135135

136+
- (void)layoutSubviews
137+
{
138+
[super layoutSubviews];
139+
140+
if (_subviewClippingEnabled) {
141+
[self _remountChildren];
142+
}
143+
}
144+
136145
- (RCTGenericDelegateSplitter<id<UIScrollViewDelegate>> *)scrollViewDelegateSplitter
137146
{
138147
return ((RCTEnhancedScrollView *)_scrollView).delegateSplitter;

0 commit comments

Comments
 (0)