mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-29 07:48:17 +08:00
Fix bug introduced by D3886866
Reviewed By: lucasr Differential Revision: D3923635 fbshipit-source-id: bfeb175bb40393be63cafb6a995b22701b87ffec
This commit is contained in:
committed by
Facebook Github Bot 9
parent
d22a85211e
commit
b32a857d60
@@ -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]] =
|
||||
|
||||
Reference in New Issue
Block a user