mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Add a bit of documentation to describe the problem this is solving
This commit is contained in:
@@ -645,6 +645,9 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
|||||||
if (_ignoreMaxSizeChange) {
|
if (_ignoreMaxSizeChange) {
|
||||||
_ignoreMaxSizeChange = NO;
|
_ignoreMaxSizeChange = NO;
|
||||||
} else {
|
} else {
|
||||||
|
// This actually doesn't perform an animation, but prevents the transaction block from being processed in the
|
||||||
|
// data controller's prevent animation block that would interupt an interupted relayout happening in an animation block
|
||||||
|
// ie. ASCollectionView bounds change on rotation or mutl-tasking split view resize.
|
||||||
[self performBatchAnimated:YES updates:^{
|
[self performBatchAnimated:YES updates:^{
|
||||||
[_dataController relayoutAllNodes];
|
[_dataController relayoutAllNodes];
|
||||||
} completion:nil];
|
} completion:nil];
|
||||||
|
|||||||
Reference in New Issue
Block a user