From 4aab3f00e079f0ec1e12249adfa409c27d7729ba 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 a677601492..0b346bc5d9 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