From b32a857d603dbfa61baab098fb8e4bae8ffe7329 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Tue, 27 Sep 2016 10:07:59 -0700 Subject: [PATCH] Fix bug introduced by D3886866 Reviewed By: lucasr Differential Revision: D3923635 fbshipit-source-id: bfeb175bb40393be63cafb6a995b22701b87ffec --- React/CSSLayout/CSSLayout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/CSSLayout/CSSLayout.c b/React/CSSLayout/CSSLayout.c index dd55ed3fe..84c51e79d 100644 --- a/React/CSSLayout/CSSLayout.c +++ b/React/CSSLayout/CSSLayout.c @@ -1705,7 +1705,7 @@ static void layoutNodeImpl(const CSSNodeRef node, for (ii = startIndex; ii < childCount; ii++) { const CSSNodeRef child = CSSNodeListGet(node->children, ii); - if (child->style.positionType == CSSPositionTypeAbsolute) { + if (child->style.positionType == CSSPositionTypeRelative) { if (child->lineIndex != i) { break; } @@ -1724,7 +1724,7 @@ static void layoutNodeImpl(const CSSNodeRef node, for (ii = startIndex; ii < endIndex; ii++) { const CSSNodeRef child = CSSNodeListGet(node->children, ii); - if (child->style.positionType == CSSPositionTypeAbsolute) { + if (child->style.positionType == CSSPositionTypeRelative) { switch (getAlignItem(node, child)) { case CSSAlignFlexStart: child->layout.position[pos[crossAxis]] =