iOS:fix coordinator cannot change view layout

This commit is contained in:
pengfei.zhou 2020-04-10 11:43:48 +08:00 committed by osborn
parent f8a5e29c83
commit 34bb6cc391

View File

@ -21,6 +21,7 @@
#import "DoricSuperNode.h" #import "DoricSuperNode.h"
#import "DoricScrollableProtocol.h" #import "DoricScrollableProtocol.h"
#import "DoricUtil.h" #import "DoricUtil.h"
#import "DoricRootNode.h"
@implementation DoricCoordinatorPlugin @implementation DoricCoordinatorPlugin
@ -110,6 +111,7 @@ - (void)setValue:(DoricViewNode *)viewNode isNavBar:(BOOL)isNavBar name:(NSStrin
[self.doricContext.navBar doric_navBar_setBackgroundColor:DoricColor(value)]; [self.doricContext.navBar doric_navBar_setBackgroundColor:DoricColor(value)];
} else { } else {
[viewNode blend:@{name: value}]; [viewNode blend:@{name: value}];
[self.doricContext.rootNode requestLayout];
} }
} }