From 1ed114e5490d937bd4c25f308d76d29bec208c04 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Mon, 5 Dec 2016 09:35:26 -0800 Subject: [PATCH] Fix an error initializing needsCrossTrailingPos Reviewed By: gkassabli Differential Revision: D4271422 fbshipit-source-id: e8d72af742d96829684958780eb56e2c375df20c --- ReactCommon/CSSLayout/CSSLayout/Yoga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/CSSLayout/CSSLayout/Yoga.c b/ReactCommon/CSSLayout/CSSLayout/Yoga.c index 70afece2f..58c43121c 100644 --- a/ReactCommon/CSSLayout/CSSLayout/Yoga.c +++ b/ReactCommon/CSSLayout/CSSLayout/Yoga.c @@ -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) {