Permalink
Browse files

Fix typo in RCTSurfaceHostingView

Summary:
Fix typo in RCTSurfaceHostingView (minumumSize -> minimumSize)
Closes #17235

Differential Revision: D6585719

Pulled By: hramos

fbshipit-source-id: bfb18015f48bc8ab161945d09125c27d29738ede
  • Loading branch information...
maicki authored and facebook-github-bot committed Dec 16, 2017
1 parent 8c8944c commit d021dd25da92d84c62c9a77049bb798e3b891447
Showing with 4 additions and 4 deletions.
  1. +4 −4 React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm
@@ -84,26 +84,26 @@ - (CGSize)sizeThatFits:(CGSize)size
return CGSizeZero;
}
CGSize minumumSize = CGSizeZero;
CGSize minimumSize = CGSizeZero;
CGSize maximumSize = CGSizeMake(INFINITY, INFINITY);
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthExact) {
minumumSize.width = size.width;
minimumSize.width = size.width;
maximumSize.width = size.width;
}
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthAtMost) {
maximumSize.width = size.width;
}
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightExact) {
minumumSize.height = size.height;
minimumSize.height = size.height;
maximumSize.height = size.height;
}
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightAtMost) {
maximumSize.height = size.height;
}
return [_surface sizeThatFitsMinimumSize:minumumSize
return [_surface sizeThatFitsMinimumSize:minimumSize
maximumSize:maximumSize];
}

0 comments on commit d021dd2

Please sign in to comment.