From b42dd438f0747bd8bc11c49a8578b93f3eba85b6 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 19 Oct 2023 14:58:57 +0800 Subject: [PATCH] iOS: when set weight, need relayout from super node --- doric-iOS/Pod/Classes/Shader/DoricSuperNode.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m b/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m index 8176d50a..03cbaac3 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m @@ -162,7 +162,8 @@ - (void)subNodeContentChanged:(DoricViewNode *)subNode { } if (self.superNode && (self.view.doricLayout.widthSpec == DoricLayoutFit - || self.view.doricLayout.heightSpec == DoricLayoutFit)) { + || self.view.doricLayout.heightSpec == DoricLayoutFit + || self.view.doricLayout.weight > 0)) { [self.superNode subNodeContentChanged:self]; } else { if (![self.type isEqualToString:@"Root"]) {