mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-15 07:19:57 +00:00
Merge pull request #1403 from hannahmbanana/fixCustomCollectionExampleApp
[CustomCollectionView Example] Fix shouldInvalidateLayoutForBoundsChange: method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user