Change some invalidateCalculatedLayout to setNeedsLayout calls

This commit is contained in:
Michael Schneider
2016-11-17 08:58:22 -08:00
parent a88b2ae916
commit bd851cae9c
2 changed files with 2 additions and 2 deletions

View File

@@ -415,7 +415,7 @@
[_textKitComponents.textStorage setAttributedString:attributedStringToDisplay];
// Calculated size depends on the seeded text.
[self invalidateCalculatedLayout];
[self setNeedsLayout];
// Update if placeholder is shown.
[self _updateDisplayingPlaceholder];

View File

@@ -496,7 +496,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
_exclusionPaths = [exclusionPaths copy];
[self _invalidateRenderer];
[self invalidateCalculatedLayout];
[self setNeedsLayout];
[self setNeedsDisplay];
}