Fix an error initializing needsCrossTrailingPos

Reviewed By: gkassabli

Differential Revision: D4271422

fbshipit-source-id: e8d72af742d96829684958780eb56e2c375df20c
This commit is contained in:
Emil Sjolander 2016-12-05 09:35:26 -08:00 committed by Facebook Github Bot
parent 6470c3fb51
commit 1ed114e549
1 changed files with 1 additions and 1 deletions

View File

@ -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) {