We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b15df2 + 20fd5da commit 19cc38bCopy full SHA for 19cc38b
src/collectionview/index.ios.ts
@@ -546,7 +546,17 @@ export class CollectionView extends CollectionViewBase {
546
if (!view) {
547
return;
548
}
549
+ const sizes: NSMutableArray<NSValue> = this._delegate instanceof UICollectionViewDelegateImpl ? this._delegate.cachedSizes : null;
550
+
551
const visibles = view.indexPathsForVisibleItems;
552
553
+ if (sizes) {
554
+ const indexes: NSIndexPath[] = Array.from(visibles);
555
+ indexes.forEach((value) => {
556
+ sizes.replaceObjectAtIndexWithObject(value.row, NSValue.valueWithCGSize(CGSizeZero));
557
+ });
558
+ }
559
560
UIView.performWithoutAnimation(() => {
561
view.performBatchUpdatesCompletion(() => {
562
view.reloadItemsAtIndexPaths(visibles);
0 commit comments