jplwill

Results 21 comments of jplwill

Sam, I see the same problem in your fork, after downloading a .zip of your master branch.

What I'm most curious about is how to fix it in the vanilla RobertBColton version, which is almost exactly what I need, modulo a few bug fixes and a couple...

Here's my current attempt, using RichTextFX 0.10.9. First, I've defined a simple class, `CodeViewer`, that combines a `CodeArea` with its virtualized scroll pane: ```java public class CodeViewer extends StackPane {...

That appears to do it! Thanks very much! I'll get back to you if I run into any surprises.

So, the above still seems to be working, but while debugging something else I ran into some behavior I didn't expect. I've instrumented the above listeners as follows: ```java leftScrollY.addListener((ob,ov,nv)...

And in fact, calling `showParagraphAtTop` isn't reliable in this setting. (It works fine for me on a single `CodeArea`.) The resulting position can be: - Exactly where I wanted it...

Maybe if I disabled the leftScrollY/rightScrollY listeners before calling showParagraphAtTop for both CodeAreas, and then re-enabled them via Platform.runLater() (and so, after everything had settled)?

Aha! The showParagraphAtTop issue was my fault. My code has been setting a special style on the paragraphGraphic for the selected lines to indicate the selection; and the prototype has...

Whoops! That helped; but it didn't solve the problem. Programmatically scrolling still causes occasional problems. I've tried disabling the leftScrollY/rightScrollY listeners while calling showParagraphTop (in several different ways), but it...