From c7d18a4f1b3964e6d05e4a24ca8f00eec2ffceed Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Thu, 29 Oct 2015 16:38:48 +0200 Subject: [PATCH] ASTextCellNode triggers a relayout after a text change --- AsyncDisplayKit/ASCellNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASCellNode.m b/AsyncDisplayKit/ASCellNode.m index 10c8a90e5a..1a1d58b5e7 100644 --- a/AsyncDisplayKit/ASCellNode.m +++ b/AsyncDisplayKit/ASCellNode.m @@ -139,7 +139,7 @@ static const CGFloat kFontSize = 18.0f; _text = [text copy]; _textNode.attributedString = [[NSAttributedString alloc] initWithString:_text attributes:@{NSFontAttributeName: [UIFont systemFontOfSize:kFontSize]}]; - + [self setNeedsLayout]; } @end