diff --git a/PSTCollectionView/PSTCollectionView.m b/PSTCollectionView/PSTCollectionView.m index 58b8976..093e2ed 100644 --- a/PSTCollectionView/PSTCollectionView.m +++ b/PSTCollectionView/PSTCollectionView.m @@ -269,11 +269,11 @@ - (void)layoutSubviews { - (void)setFrame:(CGRect)frame { if (!CGRectEqualToRect(frame, self.frame)) { - if ([self.collectionViewLayout shouldInvalidateLayoutForBoundsChange:frame]) { + [super setFrame:frame]; + if ([self.collectionViewLayout shouldInvalidateLayoutForBoundsChange:self.bounds]) { [self invalidateLayout]; _collectionViewFlags.fadeCellsForBoundsChange = YES; } - [super setFrame:frame]; } }