Fix things

This commit is contained in:
Adlai Holler
2016-10-05 15:14:11 -07:00
parent 01eadde92b
commit 08b03ab2ab
2 changed files with 4 additions and 4 deletions

View File

@@ -656,7 +656,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
return [[_dataController nodeAtIndexPath:indexPath] calculatedSize];
return [[_dataController nodeAtCompletedIndexPath:indexPath] calculatedSize];
}
- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
@@ -675,7 +675,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
{
_ASCollectionViewCell *cell = [self dequeueReusableCellWithReuseIdentifier:kCellReuseIdentifier forIndexPath:indexPath];
ASCellNode *node = [_dataController nodeAtIndexPath:indexPath];
ASCellNode *node = [_dataController nodeAtCompletedIndexPath:indexPath];
cell.node = node;
[_rangeController configureContentView:cell.contentView forCellNode:node];
@@ -1088,7 +1088,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
- (ASDisplayNode *)rangeController:(ASRangeController *)rangeController nodeAtIndexPath:(NSIndexPath *)indexPath
{
return [_dataController nodeAtIndexPath:indexPath];
return [_dataController nodeAtCompletedIndexPath:indexPath];
}
- (NSString *)nameForRangeControllerDataSource

View File

@@ -640,7 +640,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
_ASTableViewCell *cell = [self dequeueReusableCellWithIdentifier:kCellReuseIdentifier forIndexPath:indexPath];
cell.delegate = self;
ASCellNode *node = [_dataController nodeAtIndexPath:indexPath];
ASCellNode *node = [_dataController nodeAtCompletedIndexPath:indexPath];
if (node) {
[_rangeController configureContentView:cell.contentView forCellNode:node];