Skip to content

Commit 99b9f73

Browse files
committed
Fix index into size ranges
1 parent 33c07db commit 99b9f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncDisplayKit/Details/ASDataController.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ - (void)_layoutNodes:(NSArray *)nodes atIndexPaths:(NSArray *)indexPaths withAni
116116
dispatch_group_async(layoutGroup, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
117117
for (NSUInteger k = j; k < j + batchCount; k++) {
118118
ASCellNode *node = nodes[k];
119-
ASSizeRange constrainedSize = nodeBoundSizes[k - j];
119+
ASSizeRange constrainedSize = nodeBoundSizes[k];
120120
[node measureWithSizeRange:constrainedSize];
121121
node.frame = CGRectMake(0, 0, node.calculatedSize.width, node.calculatedSize.height);
122122
}

0 commit comments

Comments
 (0)