From 9f859241f6669c234ba4f69f9711c121a9c6658c Mon Sep 17 00:00:00 2001 From: erjiaba Date: Sat, 8 Oct 2022 11:27:44 +0800 Subject: [PATCH] update measure --- yoga/Yoga.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index a6776014..9de067b2 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -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