iOS: when set weight, need relayout from super node

This commit is contained in:
pengfei.zhou 2023-10-19 14:58:57 +08:00 committed by jingpeng
parent cc7f6ef577
commit b42dd438f0

View File

@ -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"]) {