Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

JFormDesigner
Copy link
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
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