Merge pull request #2626 from daboe01/fix-cptextview-backspace-issue

fixed: backspace did not trigger scrolling properly 927d6d2
This commit is contained in:
Alexandre Wilhelm
2018-04-08 11:37:19 -07:00
committed by GitHub
+1
View File
@@ -1614,6 +1614,7 @@ Sets the selection to a range of characters in response to user action.
[self didChangeText];
[_layoutManager _validateLayoutAndGlyphs];
[self sizeToFit];
[self scrollRangeToVisible:CPMakeRange(changedRange.location, 0)]
_stickyXLocation = _caret._rect.origin.x;
}