Fix error from refactor of setMeasuredDimensionsIfEmptyOrFixedSize
Summary: D4213339 refactored some code and some logic was missed where negative values should only be ignored for at most measurements. Reviewed By: gkassabli Differential Revision: D4258254 fbshipit-source-id: e22e36e67260114081e483527fc7ce378f7f0df9
This commit is contained in:
committed by
Facebook Github Bot
parent
31b961d8b3
commit
bb37e65ab1
@@ -1290,14 +1290,14 @@ static bool setMeasuredDimensionsIfEmptyOrFixedSize(const CSSNodeRef node,
|
||||
node->layout.measuredDimensions[CSSDimensionWidth] =
|
||||
boundAxis(node,
|
||||
CSSFlexDirectionRow,
|
||||
CSSValueIsUndefined(availableWidth) || availableWidth < 0
|
||||
CSSValueIsUndefined(availableWidth) || (widthMeasureMode == CSSMeasureModeAtMost && availableWidth < 0)
|
||||
? 0
|
||||
: availableWidth - marginAxisRow);
|
||||
|
||||
node->layout.measuredDimensions[CSSDimensionHeight] =
|
||||
boundAxis(node,
|
||||
CSSFlexDirectionColumn,
|
||||
CSSValueIsUndefined(availableHeight) || availableHeight < 0
|
||||
CSSValueIsUndefined(availableHeight) || (heightMeasureMode == CSSMeasureModeAtMost && availableHeight < 0)
|
||||
? 0
|
||||
: availableHeight - marginAxisColumn);
|
||||
|
||||
|
Reference in New Issue
Block a user