Skip to content

Commit

Permalink
Merge pull request #853 from QichenZhu/fix-ios-content-height
Browse files Browse the repository at this point in the history
fix(ios): update content view frame based on new layout metrics
  • Loading branch information
okwasniewski authored Aug 13, 2024
2 parents 5ba9ca0 + 1eb84ea commit e26cfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/LEGACY/Fabric/LEGACY_RNCPagerViewComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompo

-(void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetrics oldLayoutMetrics:(const facebook::react::LayoutMetrics &)oldLayoutMetrics {
[super updateLayoutMetrics:layoutMetrics oldLayoutMetrics:_layoutMetrics];
self.contentView.frame = RCTCGRectFromRect(_layoutMetrics.getContentFrame());
self.contentView.frame = RCTCGRectFromRect(layoutMetrics.getContentFrame());
_layoutMetrics = layoutMetrics;
}

Expand Down

0 comments on commit e26cfd1

Please sign in to comment.