From 2fe2cded4849e5f67c824ffa56a5dd315f10aa25 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 19 Apr 2021 17:39:35 +0800 Subject: [PATCH] iOS: fix when parent and parent's parent is fit,child is most,cannot be extend to right size. --- 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 1393325f..94ed4b42 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -194,10 +194,10 @@ - (void)measureContent:(CGSize)targetSize { } } if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.widthSpec == DoricLayoutFit && self.widthSpec == DoricLayoutMost) { - self.measuredWidth = 0; + self.measuredWidth = targetSize.width; } if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.heightSpec == DoricLayoutFit && self.heightSpec == DoricLayoutMost) { - self.measuredHeight = 0; + self.measuredHeight = targetSize.height; } }