Skip to content

Commit

Permalink
update measure
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaba committed Oct 8, 2022
1 parent e7c7678 commit 4aab3f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2952,10 +2952,10 @@ static void YGNodelayoutImpl(
availableInnerMainDim = maxInnerMainDim;
} else {
if (!node->getConfig()->useLegacyStretchBehaviour &&
((YGFloatIsUndefined(
collectedFlexItemsValues.totalFlexGrowFactors) ||
((!YGFloatIsUndefined(
collectedFlexItemsValues.totalFlexGrowFactors) &&
collectedFlexItemsValues.totalFlexGrowFactors == 0) ||
(YGFloatIsUndefined(node->resolveFlexGrow()) ||
(!YGFloatIsUndefined(node->resolveFlexGrow()) ||
node->resolveFlexGrow() == 0))) {
// If we don't have any children to flex or we can't flex the node
// itself, space we've used is all space we need. Root node also
Expand Down

0 comments on commit 4aab3f0

Please sign in to comment.