iOS:fix Flowlayout loadmore then cell's framesize set to zero
This commit is contained in:
parent
49df8d4970
commit
95d9158fac
@ -318,7 +318,6 @@ - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collection
|
||||
node.viewId = model[@"id"];
|
||||
[node blend:props];
|
||||
node.view.width = (collectionView.width - (self.columnCount - 1) * self.columnSpace) / self.columnCount;
|
||||
node.view.height = collectionView.height;
|
||||
if (position > 0 && position >= self.itemCount && self.onLoadMoreFuncId) {
|
||||
[self callJSResponse:self.onLoadMoreFuncId, nil];
|
||||
}
|
||||
|
@ -164,9 +164,11 @@ - (void)setFrame {
|
||||
if (!CGAffineTransformEqualToTransform(self.view.transform, CGAffineTransformIdentity)) {
|
||||
return;
|
||||
}
|
||||
if (self.layoutType != DoricUndefined) {
|
||||
[self.view.subviews forEach:^(__kindof UIView *obj) {
|
||||
[obj.doricLayout setFrame];
|
||||
}];
|
||||
}
|
||||
self.view.width = self.measuredWidth;
|
||||
self.view.height = self.measuredHeight;
|
||||
self.view.x = self.measuredX;
|
||||
|
Reference in New Issue
Block a user