File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -808,7 +808,8 @@ export class CollectionView extends CollectionViewBase {
808808 // for a cell to update correctly on cell layout change we need
809809 // to do it ourself instead of "propagating it"
810810 view [ 'performLayout' ] = ( ) => {
811- if ( ! this . _preparingCell ) {
811+ if ( ! this . _preparingCell && ! view [ 'inPerformLayout' ] ) {
812+ view [ 'inPerformLayout' ] = true ;
812813 const index = cell . currentIndex ;
813814 const nativeView = this . nativeViewProtected ;
814815 const sizes : NSMutableArray < NSValue > = this . _delegate instanceof UICollectionViewDelegateImpl ? this . _delegate . cachedSizes : null ;
@@ -823,6 +824,7 @@ export class CollectionView extends CollectionViewBase {
823824 cell . contentView . subviews . objectAtIndex ( 0 ) ?. layoutSubviews ( ) ;
824825 // nativeView.collectionViewLayout.invalidateLayout();
825826 } , null ) ;
827+ view [ 'inPerformLayout' ] = false ;
826828 }
827829 } ;
828830 }
You can’t perform that action at this time.
0 commit comments