iOS:fix cannot change rootView's layoutconfig or size

This commit is contained in:
pengfei.zhou
2020-03-13 17:45:03 +08:00
committed by osborn
parent e13d926b6c
commit 38ea6ea7d4
3 changed files with 16 additions and 4 deletions

View File

@@ -378,6 +378,9 @@ - (NSDictionary *)getLocationOnScreen {
}
- (void)blendLayoutConfig:(NSDictionary *)params {
if (!self.layoutConfig) {
self.view.layoutConfig = [DoricLayoutConfig new];
}
[params[@"widthSpec"] also:^(NSNumber *it) {
if (it) {
self.layoutConfig.widthSpec = (DoricLayoutSpec) [it integerValue];