diff --git a/examples/CustomCollectionView/Sample/MosaicCollectionViewLayout.m b/examples/CustomCollectionView/Sample/MosaicCollectionViewLayout.m index 0e2c65d027..67654b0df9 100644 --- a/examples/CustomCollectionView/Sample/MosaicCollectionViewLayout.m +++ b/examples/CustomCollectionView/Sample/MosaicCollectionViewLayout.m @@ -119,7 +119,7 @@ - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds { - if (!CGRectEqualToRect(self.collectionView.bounds, newBounds)) { + if (!CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size)) { return YES; } return NO;