diff --git a/AsyncDisplayKit/ASViewController.mm b/AsyncDisplayKit/ASViewController.mm index d05e9b83a0..dd29f17de4 100644 --- a/AsyncDisplayKit/ASViewController.mm +++ b/AsyncDisplayKit/ASViewController.mm @@ -291,12 +291,14 @@ ASVisibilityDepthImplementation; if (ASEnvironmentTraitCollectionIsEqualToASEnvironmentTraitCollection(environmentTraitCollection, oldEnvironmentTraitCollection) == NO) { environmentState.environmentTraitCollection = environmentTraitCollection; self.node.environmentState = environmentState; - [self.node setNeedsLayout]; NSArray> *children = [self.node children]; for (id child in children) { ASEnvironmentStatePropagateDown(child, environmentState.environmentTraitCollection); } + + // once we've propagated all the traits, layout this node. + [self.node setNeedsLayout]; } }