You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, at least one layout pulse must occur for the value to update. What happens is that "Platform.runLater" is bundled into the same layout pulse as "scrollYBy" so the value hasn't been updated yet. So you need something like the following:
scrollButton.setOnAction(e -> {
System.out.println("Before scrolling first cell index: " + flow.getFirstVisibleIndex());
flow.scrollYBy(flow.getHeight());
scene.addPostLayoutPulseListener( newWaitForScrollYPulse( scene ) );
});
This is my test code:
If you push button you will get the following output:
I tried:
but the result was the same.
The text was updated successfully, but these errors were encountered: