Fix error from refactor of setMeasuredDimensionsIfEmptyOrFixedSize
Reviewed By: gkassabli Differential Revision: D4258254 fbshipit-source-id: e22e36e67260114081e483527fc7ce378f7f0df9
This commit is contained in:
parent
81c8a3f2ea
commit
8117a029cb
File diff suppressed because it is too large
Load Diff
|
@ -1290,14 +1290,14 @@ static bool setMeasuredDimensionsIfEmptyOrFixedSize(const CSSNodeRef node,
|
||||||
node->layout.measuredDimensions[CSSDimensionWidth] =
|
node->layout.measuredDimensions[CSSDimensionWidth] =
|
||||||
boundAxis(node,
|
boundAxis(node,
|
||||||
CSSFlexDirectionRow,
|
CSSFlexDirectionRow,
|
||||||
CSSValueIsUndefined(availableWidth) || availableWidth < 0
|
CSSValueIsUndefined(availableWidth) || (widthMeasureMode == CSSMeasureModeAtMost && availableWidth < 0)
|
||||||
? 0
|
? 0
|
||||||
: availableWidth - marginAxisRow);
|
: availableWidth - marginAxisRow);
|
||||||
|
|
||||||
node->layout.measuredDimensions[CSSDimensionHeight] =
|
node->layout.measuredDimensions[CSSDimensionHeight] =
|
||||||
boundAxis(node,
|
boundAxis(node,
|
||||||
CSSFlexDirectionColumn,
|
CSSFlexDirectionColumn,
|
||||||
CSSValueIsUndefined(availableHeight) || availableHeight < 0
|
CSSValueIsUndefined(availableHeight) || (heightMeasureMode == CSSMeasureModeAtMost && availableHeight < 0)
|
||||||
? 0
|
? 0
|
||||||
: availableHeight - marginAxisColumn);
|
: availableHeight - marginAxisColumn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue