From cabb1b1f82edd8e94b74d90e1fede0ff3ad06cec Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sun, 26 Apr 2020 19:00:00 +0800 Subject: [PATCH] iOS:fix layouts error --- doric-iOS/Pod/Classes/Shader/DoricLayouts.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m index d0ad78a7..29628940 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -156,10 +156,10 @@ - (void)measureContent:(CGSize)targetSize { break; } } - if (self.layoutType != DoricUndefined && self.view.superview.doricLayout.widthSpec == DoricLayoutFit && self.widthSpec == DoricLayoutMost) { + if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.widthSpec == DoricLayoutFit && self.widthSpec == DoricLayoutMost) { self.measuredWidth = 0; } - if (self.layoutType != DoricUndefined && self.view.superview.doricLayout.heightSpec == DoricLayoutFit && self.heightSpec == DoricLayoutMost) { + if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.heightSpec == DoricLayoutFit && self.heightSpec == DoricLayoutMost) { self.measuredHeight = 0; } }