Skip to content

Commit

Permalink
Back out "[Yoga] Remove comparison to YGUndefined *and* 0.0f"
Browse files Browse the repository at this point in the history
Summary: Original commit changeset: 13c8f24e1bc8

Reviewed By: fabiomassimo

Differential Revision: D15583502

fbshipit-source-id: efc6175f6c4925a383fea723195c073f49e2eff1
  • Loading branch information
davidaurelio authored and facebook-github-bot committed May 31, 2019
1 parent 723adad commit fd607b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ReactCommon/yoga/yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd607b1

Please sign in to comment.