mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 10:53:27 +00:00
Merge pull request #1263 from levi/patch-5
[ASCollectionView] Enable animated bounds changes
This commit is contained in:
commit
eb6aa28d42
@ -645,7 +645,10 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
|||||||
if (_ignoreMaxSizeChange) {
|
if (_ignoreMaxSizeChange) {
|
||||||
_ignoreMaxSizeChange = NO;
|
_ignoreMaxSizeChange = NO;
|
||||||
} else {
|
} else {
|
||||||
[self performBatchAnimated:NO updates:^{
|
// 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:^{
|
||||||
[_dataController relayoutAllNodes];
|
[_dataController relayoutAllNodes];
|
||||||
} completion:nil];
|
} completion:nil];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user