From b496be1e6eaeef1f41edd5ea49efc0ce74091550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 13 Sep 2022 17:19:51 +0800 Subject: [PATCH] bugfix: fix intrinsic size caused side effect --- doric-iOS/Pod/Classes/Shader/DoricLayouts.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m index 2452e9ae..bf8f3dff 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -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]; } }