ASTextCellNode triggers a relayout after a text change

This commit is contained in:
Huy Nguyen 2015-10-29 16:38:48 +02:00
parent 00400e166f
commit c7d18a4f1b

View File

@ -139,7 +139,7 @@ static const CGFloat kFontSize = 18.0f;
_text = [text copy]; _text = [text copy];
_textNode.attributedString = [[NSAttributedString alloc] initWithString:_text _textNode.attributedString = [[NSAttributedString alloc] initWithString:_text
attributes:@{NSFontAttributeName: [UIFont systemFontOfSize:kFontSize]}]; attributes:@{NSFontAttributeName: [UIFont systemFontOfSize:kFontSize]}];
[self setNeedsLayout];
} }
@end @end