Merge pull request #1263 from levi/patch-5

[ASCollectionView] Enable animated bounds changes
This commit is contained in:
appleguy 2016-02-23 13:23:31 -08:00
commit eb6aa28d42

View File

@ -645,7 +645,10 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
if (_ignoreMaxSizeChange) {
_ignoreMaxSizeChange = NO;
} 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];
} completion:nil];
}