-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix content view frame and origins for text selection and interaction
The content view frame origin is now set to the width of the gutter view, instead of the negative width. This fixes issues where the origins and frames for text selection rectangles, closest position calculations, and other text interactions were incorrectly offset. When sizing to fit, the content view frame is now set based on the text view's frame width/height instead of bounds, and the content size is set to match. The line highlight and selection rectangle calculations now use a fixed origin of 0 for the x coordinate, instead of the content view's frame origin x. The line selection rectangle width uses the content view's bounds width.
- Loading branch information
1 parent
6ec6723
commit 00a4241
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters