Skip to content

Commit

Permalink
Don't setNeedsDisplay on text node measure #trivial (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler authored Sep 13, 2018
1 parent 69ab24b commit 1d2f1f2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ - (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
[self prepareAttributedString:mutableText];
ASTextLayout *layout = [ASTextNode2 compatibleLayoutWithContainer:container text:mutableText];

[self setNeedsDisplay];

return layout.textBoundingSize;
}

Expand Down

0 comments on commit 1d2f1f2

Please sign in to comment.