Skip to content

Commit 1eb84ea

Browse files
committed
fix(ios): update content view frame based on new layout metrics
1 parent 5ba9ca0 commit 1eb84ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/LEGACY/Fabric/LEGACY_RNCPagerViewComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompo
106106

107107
-(void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetrics oldLayoutMetrics:(const facebook::react::LayoutMetrics &)oldLayoutMetrics {
108108
[super updateLayoutMetrics:layoutMetrics oldLayoutMetrics:_layoutMetrics];
109-
self.contentView.frame = RCTCGRectFromRect(_layoutMetrics.getContentFrame());
109+
self.contentView.frame = RCTCGRectFromRect(layoutMetrics.getContentFrame());
110110
_layoutMetrics = layoutMetrics;
111111
}
112112

0 commit comments

Comments
 (0)