Closed JordanMartinez closed 4 years ago
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.
As reported in TomasMikula/RichTextFX#535, binding two Vertical-Gravity Virtualized content's
estimatedScrollY
properties bidirectionally doesn't update them correctly. If the call isprop1.bindBidirectionally(prop2)
, the two values will be correct wheneverprop1
scrolls but not whenprop2
scrolls.