From e7c7678c991a15d798bf3ecfa4080a1202dd8b42 Mon Sep 17 00:00:00 2001 From: kinarobin Date: Fri, 17 Dec 2021 17:38:50 +0800 Subject: [PATCH] fix measure inner dimensions --- yoga/Yoga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index 2c68674a..a6776014 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -2953,9 +2953,9 @@ static void YGNodelayoutImpl( } else { if (!node->getConfig()->useLegacyStretchBehaviour && ((YGFloatIsUndefined( - collectedFlexItemsValues.totalFlexGrowFactors) && + 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