We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d31ec5 commit 6ce3279Copy full SHA for 6ce3279
YYText/YYTextView.m
@@ -254,8 +254,9 @@ - (void)_updateLayout {
254
[text yy_setAttribute:key value:value range:NSMakeRange(_innerText.length, 1)];
255
}];
256
}
257
-
+ [self willChangeValueForKey:@"textLayout"];
258
_innerLayout = [YYTextLayout layoutWithContainer:_innerContainer text:text];
259
+ [self didChangeValueForKey:@"textLayout"];
260
CGSize size = [_innerLayout textBoundingSize];
261
CGSize visibleSize = [self _getVisibleSize];
262
if (_innerContainer.isVerticalForm) {
0 commit comments