mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Fix typo in RCTSurfaceHostingView
Summary: Fix typo in RCTSurfaceHostingView (minumumSize -> minimumSize) Closes https://github.com/facebook/react-native/pull/17235 Differential Revision: D6585719 Pulled By: hramos fbshipit-source-id: bfb18015f48bc8ab161945d09125c27d29738ede
This commit is contained in:
parent
8c8944c10f
commit
d021dd25da
@ -84,11 +84,11 @@ RCT_NOT_IMPLEMENTED(- (nullable instancetype)initWithCoder:(NSCoder *)coder)
|
|||||||
return CGSizeZero;
|
return CGSizeZero;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGSize minumumSize = CGSizeZero;
|
CGSize minimumSize = CGSizeZero;
|
||||||
CGSize maximumSize = CGSizeMake(INFINITY, INFINITY);
|
CGSize maximumSize = CGSizeMake(INFINITY, INFINITY);
|
||||||
|
|
||||||
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthExact) {
|
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthExact) {
|
||||||
minumumSize.width = size.width;
|
minimumSize.width = size.width;
|
||||||
maximumSize.width = size.width;
|
maximumSize.width = size.width;
|
||||||
}
|
}
|
||||||
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthAtMost) {
|
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthAtMost) {
|
||||||
@ -96,14 +96,14 @@ RCT_NOT_IMPLEMENTED(- (nullable instancetype)initWithCoder:(NSCoder *)coder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightExact) {
|
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightExact) {
|
||||||
minumumSize.height = size.height;
|
minimumSize.height = size.height;
|
||||||
maximumSize.height = size.height;
|
maximumSize.height = size.height;
|
||||||
}
|
}
|
||||||
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightAtMost) {
|
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightAtMost) {
|
||||||
maximumSize.height = size.height;
|
maximumSize.height = size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
return [_surface sizeThatFitsMinimumSize:minumumSize
|
return [_surface sizeThatFitsMinimumSize:minimumSize
|
||||||
maximumSize:maximumSize];
|
maximumSize:maximumSize];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user