From 93cdc0f2f53de0cbdd351b19fc3ec3be62a33b72 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Fri, 9 Oct 2015 19:55:14 -0700 Subject: [PATCH] Don't set cell node frames during measurement --- AsyncDisplayKit/Details/ASDataController.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/AsyncDisplayKit/Details/ASDataController.mm b/AsyncDisplayKit/Details/ASDataController.mm index 74f5b62bf5..8efd41daf6 100644 --- a/AsyncDisplayKit/Details/ASDataController.mm +++ b/AsyncDisplayKit/Details/ASDataController.mm @@ -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; } }