Don't set cell node frames during measurement

This commit is contained in:
Adlai Holler
2015-10-09 19:55:14 -07:00
parent 223e9ff504
commit 93cdc0f2f5

View File

@@ -108,7 +108,6 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
if (node.isNodeLoaded && node.needsMeasure) {
ASSizeRange constrainedSize = [_dataSource dataController:self constrainedSizeForNodeAtIndexPath:indexPath];
[node measureWithSizeRange:constrainedSize];
node.frame = CGRectMake(0, 0, node.calculatedSize.width, node.calculatedSize.height);
node.needsMeasure = NO;
}
}];
@@ -138,7 +137,6 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
// Nodes with main thread affinity should all have already been measured.
if (node.needsMeasure) {
[node measureWithSizeRange:constrainedSize];
node.frame = CGRectMake(0, 0, node.calculatedSize.width, node.calculatedSize.height);
node.needsMeasure = NO;
}
}