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];
|
[self callJSResponse:self.onLoadMoreFuncId, nil];
|
||||||
}
|
}
|
||||||
[node.view.doricLayout apply];
|
[node.view.doricLayout apply];
|
||||||
|
[node requestLayout];
|
||||||
[self callItem:position size:node.view.frame.size];
|
[self callItem:position size:node.view.frame.size];
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ - (void)initWithSuperNode:(DoricSuperNode *)superNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)requestLayout {
|
- (void)requestLayout {
|
||||||
[super requestLayout];
|
|
||||||
[self.view.doricLayout apply];
|
[self.view.doricLayout apply];
|
||||||
|
[super requestLayout];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -137,6 +137,7 @@ - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collection
|
|||||||
node.viewId = model[@"id"];
|
node.viewId = model[@"id"];
|
||||||
[node blend:props];
|
[node blend:props];
|
||||||
[node.view.doricLayout apply:CGSizeMake(collectionView.width, collectionView.height)];
|
[node.view.doricLayout apply:CGSizeMake(collectionView.width, collectionView.height)];
|
||||||
|
[node requestLayout];
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user