Skip to content

adjust wrapped lines selection to the rest of the line#577

Merged
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JFormDesigner:adjust-wrapped-lines-selection
Sep 8, 2017
Merged

adjust wrapped lines selection to the rest of the line#577
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JFormDesigner:adjust-wrapped-lines-selection

Conversation

@JFormDesigner
Copy link
Copy Markdown
Contributor

Adjust right edge of wrapped lines selection to the rest of the line (similar to #549 / #564). IOW when selection the space character at the end of a wrapped line, then the selection is expanded to the right edge of the text area.

Old:
("01234 678 01" is a single line)

image image

New:

image image

Also closed rectangle path in ParagraphText.createRectangle(). Not sure whether this makes any difference, but com.sun.javafx.text.PrismTextLayout.getRange() does it too. So there might be a reason...

@JordanMartinez JordanMartinez merged commit 21bded5 into FXMisc:master Sep 8, 2017
@JordanMartinez
Copy link
Copy Markdown
Contributor

Thanks!

@JFormDesigner JFormDesigner deleted the adjust-wrapped-lines-selection branch September 8, 2017 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants