Add a bit of documentation to describe the problem this is solving

This commit is contained in:
Levi McCallum
2016-02-23 13:02:37 -08:00
parent 4640801939
commit c2d379f8f5

View File

@@ -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];