mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASTableView/ASCollectionView] Ignore bounds.origin when checking for zero-size
This commit is contained in:
@@ -861,7 +861,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
|
||||
// Calling indexPathsForVisibleRows will trigger UIKit to call reloadData if it never has, which can result
|
||||
// in incorrect layout if performed at zero size. We can use the fact that nothing can be visible at zero size to return fast.
|
||||
if (CGRectEqualToRect(self.bounds, CGRectZero)) {
|
||||
if (CGSizeEqualToSize(self.bounds.size, CGSizeZero)) {
|
||||
return @[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user