fix measure inner dimensions

This commit is contained in:
kinarobin
2021-12-17 17:38:50 +08:00
parent b6c71ae58b
commit e7c7678c99

View File

@@ -2953,9 +2953,9 @@ static void YGNodelayoutImpl(
} else { } else {
if (!node->getConfig()->useLegacyStretchBehaviour && if (!node->getConfig()->useLegacyStretchBehaviour &&
((YGFloatIsUndefined( ((YGFloatIsUndefined(
collectedFlexItemsValues.totalFlexGrowFactors) && collectedFlexItemsValues.totalFlexGrowFactors) ||
collectedFlexItemsValues.totalFlexGrowFactors == 0) || collectedFlexItemsValues.totalFlexGrowFactors == 0) ||
(YGFloatIsUndefined(node->resolveFlexGrow()) && (YGFloatIsUndefined(node->resolveFlexGrow()) ||
node->resolveFlexGrow() == 0))) { node->resolveFlexGrow() == 0))) {
// If we don't have any children to flex or we can't flex the node // 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 // itself, space we've used is all space we need. Root node also