bugfix: fix intrinsic size caused side effect

This commit is contained in:
王劲鹏 2022-09-13 17:19:51 +08:00 committed by osborn
parent 0df882f28c
commit b496be1e6e

View File

@ -1536,11 +1536,10 @@ - (void)layoutFlex {
}
layout.measuredX = YGNodeLayoutGetLeft(child.yoga.node);
layout.measuredY = YGNodeLayoutGetTop(child.yoga.node);
CGSize size = child.yoga.intrinsicSize;
[layout measureWidth:DoricMeasureSpecMake(DoricMeasureExactly,
size.width)
YGNodeLayoutGetWidth(child.yoga.node))
height:DoricMeasureSpecMake(DoricMeasureExactly,
size.height)];
YGNodeLayoutGetHeight(child.yoga.node))];
[layout layout];
}
}