Skip to content

Commit 597a256

Browse files
committed
fix(ios): fix relayout issues with autoReloadItemOnLayout in some cases
1 parent fd8d90a commit 597a256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collectionview/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ export class CollectionView extends CollectionViewBase {
721721
nativeView.performBatchUpdatesCompletion(() => {
722722
this.measureCell(cell, view, index);
723723
this.notifyForItemAtIndex(CollectionViewBase.itemLoadingEvent, view, indexPath.row, view.bindingContext, cell);
724+
nativeView.collectionViewLayout.invalidateLayout();
724725
}, null);
725-
nativeView.collectionViewLayout.invalidateLayout();
726726
}
727727
};
728728
}

0 commit comments

Comments
 (0)