Put back the frame-setting behavior when measuring cell nodes

This commit is contained in:
Adlai Holler
2015-10-09 20:23:54 -07:00
parent 06b7897bc1
commit fdb11275db
3 changed files with 6 additions and 14 deletions

View File

@@ -423,12 +423,7 @@ static BOOL _isInterceptedSelector(SEL sel)
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
ASCellNode *node = [_dataController nodeAtIndexPath:indexPath];
CGSize size = node.calculatedSize;
if (!CGSizeEqualToSize(size, node.frame.size)) {
node.frame = CGRectMake(0, 0, size.width, size.height);
}
return size;
return [[_dataController nodeAtIndexPath:indexPath] calculatedSize];
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView