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