Fix an error initializing needsCrossTrailingPos
Reviewed By: gkassabli Differential Revision: D4271422 fbshipit-source-id: e8d72af742d96829684958780eb56e2c375df20c
This commit is contained in:
parent
6470c3fb51
commit
1ed114e549
|
@ -2240,7 +2240,7 @@ static void YGNodelayoutImpl(const YGNodeRef node,
|
||||||
const bool needsMainTrailingPos =
|
const bool needsMainTrailingPos =
|
||||||
mainAxis == YGFlexDirectionRowReverse || mainAxis == YGFlexDirectionColumnReverse;
|
mainAxis == YGFlexDirectionRowReverse || mainAxis == YGFlexDirectionColumnReverse;
|
||||||
const bool needsCrossTrailingPos =
|
const bool needsCrossTrailingPos =
|
||||||
YGFlexDirectionRowReverse || crossAxis == YGFlexDirectionColumnReverse;
|
crossAxis == YGFlexDirectionRowReverse || crossAxis == YGFlexDirectionColumnReverse;
|
||||||
|
|
||||||
// Set trailing position if necessary.
|
// Set trailing position if necessary.
|
||||||
if (needsMainTrailingPos || needsCrossTrailingPos) {
|
if (needsMainTrailingPos || needsCrossTrailingPos) {
|
||||||
|
|
Loading…
Reference in New Issue