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

Bidirectional binding of length properties does not update both values correctly #43

Closed
JordanMartinez opened this issue Jun 26, 2017 · 1 comment · Fixed by #79 or #113
Closed
Labels

Comments

@JordanMartinez
Copy link
Contributor

As reported in FXMisc/RichTextFX#535, binding two Vertical-Gravity Virtualized content's estimatedScrollY properties bidirectionally doesn't update them correctly. If the call is prop1.bindBidirectionally(prop2), the two values will be correct whenever prop1 scrolls but not when prop2 scrolls.

@Fibii
Copy link

Fibii commented Jul 27, 2019

I had this same issue, but i found a workaround it, i used a listener on the estimatedScrollYProperty and then updated the other area using setValue as shown:

textArea.estimatedScrollYProperty().addListener((observable, oldValue, newValue) -> lineCounter.estimatedScrollYProperty().setValue(newValue));

update: this works for stopping the automatic endless scrolling, but still gets the values messed up sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants