mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix bug introduced by D3886866
Reviewed By: lucasr Differential Revision: D3923635 fbshipit-source-id: bfeb175bb40393be63cafb6a995b22701b87ffec
This commit is contained in:
1 parent
d22a85211e
commit
b32a857d60
1 file changed
+2
-2
@@ -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