Skip to content

Commit

Permalink
iOS: fix popover view cannot change its layout after show
Browse files Browse the repository at this point in the history
  • Loading branch information
penfeizhou authored and jingpeng committed Feb 7, 2023
1 parent c7d7e40 commit 54ecddf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doric-iOS/Pod/Classes/Plugin/DoricShaderPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 54ecddf

Please sign in to comment.