Back out "[Yoga] Remove comparison to YGUndefined
*and* 0.0f
"
Summary: Original commit changeset: 13c8f24e1bc8 Reviewed By: fabiomassimo Differential Revision: D15583502 fbshipit-source-id: efc6175f6c4925a383fea723195c073f49e2eff1
This commit is contained in:
committed by
Facebook Github Bot
parent
0908d3a173
commit
195c166efe
@@ -2861,8 +2861,11 @@ static void YGNodelayoutImpl(
|
||||
availableInnerMainDim = maxInnerMainDim;
|
||||
} else {
|
||||
if (!node->getConfig()->useLegacyStretchBehaviour &&
|
||||
(collectedFlexItemsValues.totalFlexGrowFactors == 0 ||
|
||||
node->resolveFlexGrow() == 0)) {
|
||||
((YGFloatIsUndefined(
|
||||
collectedFlexItemsValues.totalFlexGrowFactors) &&
|
||||
collectedFlexItemsValues.totalFlexGrowFactors == 0) ||
|
||||
(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
|
||||
// should be shrunk to minimum
|
||||
|
Reference in New Issue
Block a user