From 6bef1e129aabce6819e56fd76446c8d4e97be5f9 Mon Sep 17 00:00:00 2001 From: ricky Date: Thu, 8 Sep 2016 16:01:14 -0700 Subject: [PATCH] [ASViewController] fix layout recursion (#2218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t think this `setNeedsLayout` is required since we call `measure` now. --- AsyncDisplayKit/ASViewController.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/AsyncDisplayKit/ASViewController.mm b/AsyncDisplayKit/ASViewController.mm index 4b3090677d..d44b00e8aa 100644 --- a/AsyncDisplayKit/ASViewController.mm +++ b/AsyncDisplayKit/ASViewController.mm @@ -304,7 +304,6 @@ ASVisibilityDepthImplementation; // once we've propagated all the traits, layout this node. // Remeasure the node with the latest constrained size – old constrained size may be incorrect. [self.node layoutThatFits:[self nodeConstrainedSize]]; - [self.node setNeedsLayout]; } }