From c56c58423b8e9836267e3696073af77fc3a036ae Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 21 Apr 2020 11:11:35 +0800 Subject: [PATCH] iOS:fix layout error --- doric-iOS/Pod/Classes/Shader/DoricLayouts.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m index a9e766c1..0224aa7c 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -95,7 +95,7 @@ - (void)measureSelf:(CGSize)targetSize { } if (self.heightSpec == DoricLayoutMost) { if (self.view.superview.doricLayout.layoutType == DoricVLayout && self.weight > 0) { - height = self.measuredWidth = 0; + height = self.measuredHeight = 0; } else { height = self.measuredHeight = targetSize.height; }