Invalidate TextNode Renderer Instead of Changing constrainedSize (#2516)

* Instead of changing its constrained size, just invalidate renderer. It's virtually the same.

* Check constrained size before invalidating renderer
This commit is contained in:
Adlai Holler
2016-10-31 14:14:21 -07:00
committed by GitHub
parent 7ecce6b677
commit f09b92641c
3 changed files with 6 additions and 32 deletions

View File

@@ -53,7 +53,7 @@
@property (nonatomic, assign, readonly) ASTextKitAttributes attributes;
@property (nonatomic, assign, readwrite) CGSize constrainedSize;
@property (nonatomic, assign, readonly) CGSize constrainedSize;
@property (nonatomic, assign, readonly) CGFloat currentScaleFactor;