bugfix: fix intrinsic size caused side effect
This commit is contained in:
parent
0df882f28c
commit
b496be1e6e
@ -1536,11 +1536,10 @@ - (void)layoutFlex {
|
|||||||
}
|
}
|
||||||
layout.measuredX = YGNodeLayoutGetLeft(child.yoga.node);
|
layout.measuredX = YGNodeLayoutGetLeft(child.yoga.node);
|
||||||
layout.measuredY = YGNodeLayoutGetTop(child.yoga.node);
|
layout.measuredY = YGNodeLayoutGetTop(child.yoga.node);
|
||||||
CGSize size = child.yoga.intrinsicSize;
|
|
||||||
[layout measureWidth:DoricMeasureSpecMake(DoricMeasureExactly,
|
[layout measureWidth:DoricMeasureSpecMake(DoricMeasureExactly,
|
||||||
size.width)
|
YGNodeLayoutGetWidth(child.yoga.node))
|
||||||
height:DoricMeasureSpecMake(DoricMeasureExactly,
|
height:DoricMeasureSpecMake(DoricMeasureExactly,
|
||||||
size.height)];
|
YGNodeLayoutGetHeight(child.yoga.node))];
|
||||||
[layout layout];
|
[layout layout];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user