Fix bug introduced by D3886866
Reviewed By: lucasr Differential Revision: D3923635 fbshipit-source-id: bfeb175bb40393be63cafb6a995b22701b87ffec
This commit is contained in:
parent
d22a85211e
commit
b32a857d60
|
@ -1705,7 +1705,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
|
||||||
for (ii = startIndex; ii < childCount; ii++) {
|
for (ii = startIndex; ii < childCount; ii++) {
|
||||||
const CSSNodeRef child = CSSNodeListGet(node->children, ii);
|
const CSSNodeRef child = CSSNodeListGet(node->children, ii);
|
||||||
|
|
||||||
if (child->style.positionType == CSSPositionTypeAbsolute) {
|
if (child->style.positionType == CSSPositionTypeRelative) {
|
||||||
if (child->lineIndex != i) {
|
if (child->lineIndex != i) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1724,7 +1724,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
|
||||||
for (ii = startIndex; ii < endIndex; ii++) {
|
for (ii = startIndex; ii < endIndex; ii++) {
|
||||||
const CSSNodeRef child = CSSNodeListGet(node->children, ii);
|
const CSSNodeRef child = CSSNodeListGet(node->children, ii);
|
||||||
|
|
||||||
if (child->style.positionType == CSSPositionTypeAbsolute) {
|
if (child->style.positionType == CSSPositionTypeRelative) {
|
||||||
switch (getAlignItem(node, child)) {
|
switch (getAlignItem(node, child)) {
|
||||||
case CSSAlignFlexStart:
|
case CSSAlignFlexStart:
|
||||||
child->layout.position[pos[crossAxis]] =
|
child->layout.position[pos[crossAxis]] =
|
||||||
|
|
Loading…
Reference in New Issue