Skip to content

Commit

Permalink
Fix an error initializing needsCrossTrailingPos
Browse files Browse the repository at this point in the history
Reviewed By: gkassabli

Differential Revision: D4271422

fbshipit-source-id: e8d72af742d96829684958780eb56e2c375df20c
  • Loading branch information
Emil Sjolander authored and Martin Konicek committed Dec 12, 2016
1 parent 08c88fa commit 61a63c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/CSSLayout/CSSLayout/Yoga.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ static void YGNodelayoutImpl(const YGNodeRef node,
const bool needsMainTrailingPos =
mainAxis == YGFlexDirectionRowReverse || mainAxis == YGFlexDirectionColumnReverse;
const bool needsCrossTrailingPos =
YGFlexDirectionRowReverse || crossAxis == YGFlexDirectionColumnReverse;
crossAxis == YGFlexDirectionRowReverse || crossAxis == YGFlexDirectionColumnReverse;

// Set trailing position if necessary.
if (needsMainTrailingPos || needsCrossTrailingPos) {
Expand Down

0 comments on commit 61a63c9

Please sign in to comment.