Skip to content

Commit

Permalink
Use bounds instead of frame in the delegate method asking for invalid…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
Tobias Kräntzer committed Jul 15, 2013
1 parent af3ab75 commit 9567188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSTCollectionView/PSTCollectionView.m
Expand Up @@ -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];
}
}

Expand Down

0 comments on commit 9567188

Please sign in to comment.