Fix measure inner dimensions #1114
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-flex-inner-main-dimension-measure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
YGFloatIsUndefined(collectedFlexItemsValues.totalFlexGrowFactors) && collectedFlexItemsValues.totalFlexGrowFactors == 0
is not reachable.@@ -2952,10 +2952,10 @@ static void YGNodelayoutImpl(
availableInnerMainDim = maxInnerMainDim;
} else {
Guess those extra parentheses are redundant, now that it's a list of OR clauses... granted, the expression is quite hard to unpack visually, and extra parentheses don't help here, quite an opposite
@@ -2952,10 +2952,10 @@ static void YGNodelayoutImpl(
availableInnerMainDim = maxInnerMainDim;
} else {
I actually believe that the original intent there may have been to have it like this instead:
Please check my comment, the code was wrong there, but I believe the intent was to check if not undefined and then compare with zero for both values.
@@ -2952,10 +2952,10 @@ static void YGNodelayoutImpl(
availableInnerMainDim = maxInnerMainDim;
} else {
Yeah, you're right. I had update this code.
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Pull request closed