Skip to content

Commit

Permalink
Fix typo in RCTSurfaceHostingView
Browse files Browse the repository at this point in the history
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 d021dd2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit d021dd2

Please sign in to comment.