iOS:fix missing call of requestLayout
This commit is contained in:
parent
f6c151900b
commit
d4bf1245dd
@ -322,6 +322,7 @@ - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collection
|
||||
[self callJSResponse:self.onLoadMoreFuncId, nil];
|
||||
}
|
||||
[node.view.doricLayout apply];
|
||||
[node requestLayout];
|
||||
[self callItem:position size:node.view.frame.size];
|
||||
return cell;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ - (void)initWithSuperNode:(DoricSuperNode *)superNode {
|
||||
}
|
||||
|
||||
- (void)requestLayout {
|
||||
[super requestLayout];
|
||||
[self.view.doricLayout apply];
|
||||
[super requestLayout];
|
||||
}
|
||||
@end
|
||||
|
@ -137,6 +137,7 @@ - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collection
|
||||
node.viewId = model[@"id"];
|
||||
[node blend:props];
|
||||
[node.view.doricLayout apply:CGSizeMake(collectionView.width, collectionView.height)];
|
||||
[node requestLayout];
|
||||
return cell;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user