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

CodeArea caretBounds graphic bug #812

Closed
nashousni opened this issue Apr 15, 2019 · 5 comments
Closed

CodeArea caretBounds graphic bug #812

nashousni opened this issue Apr 15, 2019 · 5 comments
Assignees
Labels

Comments

@nashousni
Copy link

nashousni commented Apr 15, 2019

Using CodeArea getCaretBounds() method within big scripts makes a blue selection appear.
for example:
The following code:
codeArea.textProperty().addListener((observable, oldvalue, newvalue) -> {
codeArea.getCaretBounds().ifPresent(caretBounds -> {
});
});

creates this blue highlight:
caretBounds_bug
This issue appears in the version 0.9.3 but not in the 0.9.2 version

@Jugen
Copy link
Collaborator

Jugen commented Apr 16, 2019

@nashousni could you please provide more detailed steps and code as I can't replicate the problem with what you have provided so far. Also with which OS and Java version are you experiencing this ?

@nashousni
Copy link
Author

@Jugen the issue often occurs within a long script .
OS : Fedora release 27 (Twenty Seven)
JAVA version : java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
richtextfx : <richtextfx.version>0.9.3</richtextfx.version>

@Jugen
Copy link
Collaborator

Jugen commented Apr 16, 2019

@nashousni thanks for the details, could you please try and see if this happens on Windows - then we'll know if it's got something to do with the OS.

If it does happen on Windows then could you please tell me exactly what it is that you do to reproduce the problem - thanks.

@nashousni
Copy link
Author

@Jugen the same bug also happens on Windows.
Just create a long text and try to write something in the codeArea (inside). and use the method codeArea.getCaretBounds().ifPresent(caretBounds -> {
});
in your script. you should see this blue highlight

@Jugen Jugen added the bug label May 14, 2019
@Jugen Jugen self-assigned this May 14, 2019
Jugen added a commit that referenced this issue May 14, 2019
@Jugen
Copy link
Collaborator

Jugen commented May 14, 2019

Fixed in PR #819

@Jugen Jugen closed this as completed May 14, 2019
@Jugen Jugen removed the regression label May 15, 2019
Jugen added a commit that referenced this issue May 20, 2019
Fix for #812 and #819 caretBounds graphic bug
This was referenced Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants