mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 11:27:56 +08:00
Don't set cell node frames during measurement
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user