iOS: fix popover view cannot change its layout after show

This commit is contained in:
pengfei.zhou 2023-02-07 14:11:42 +08:00 committed by jingpeng
parent c7d7e4052d
commit 54ecddf994

View File

@ -51,6 +51,9 @@ - (void)render:(NSDictionary *)argument withPromise:(DoricPromise *)promise {
} else {
DoricViewNode *viewNode = [self.doricContext targetViewNode:viewId];
[viewNode blend:[argument optObject:@"props"]];
if (![viewNode isKindOfClass:DoricRootNode.class]) {
[viewNode.view.doricLayout apply];
}
[viewNode requestLayout];
}
[promise resolve:nil];