iOS: when set weight, need relayout from super node
This commit is contained in:
parent
cc7f6ef577
commit
b42dd438f0
@ -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"]) {
|
||||
|
Reference in New Issue
Block a user