question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make VirtualizedScrollPane scroll to the bottom?

See original GitHub issue

I use RichTextFX 0.10.9 and I have the following code:

    InlineCssTextArea textArea = new InlineCssTextArea();
    VirtualizedScrollPane scrollPane = new VirtualizedScrollPane(textArea);
       .....
    Platform.runLater(() -> {
           .....
           scrollPane.scrollYToPixel(Double.MAX_VALUE);//LINE X
    });

At line X I need to scroll textArea to bottom. But it doesn’t work. Please, could anyone tell me how to do it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
PavelTurkishcommented, Mar 29, 2022

@Jugen No, I don’t use richtextfx-fat. I solved the problem with the compilation error by adding requires reactfx; to my module-info. Thank you for your help.

0reactions
Jugencommented, Mar 29, 2022

Requested output is: org.reactfx.collection.SuspendableListWrapper

Are you using the fat jar: richtextfx-fat-0.10.9.jar ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaFX auto-scroll down scrollpane - Stack Overflow
For example, I have a TitledPane on the bottom of the screen (inside a ScrollPane) and when I expand it I would like...
Read more >
Getting scroll position of CodeArea #98 - FXMisc/RichTextFX
Hi! I'm using this API for a project, and have added a CodeArea in a StackPane on top of a Canvas. I want...
Read more >
Programmatically scroll to bottom in ScrollPane — oracle-tech
I am trying to auto scroll to bottom in a ScrollPane. I add items to a VBox, like in a chat window. Therefore...
Read more >
VirtualizedScrollPane (Flowless 0.6 API) - FXMisc
Unbinds scrolling from Content before returning Content. void, scrollXBy(double deltaX). Scroll the content horizontally by the given amount.
Read more >
JavaFX: Synchronize Editor scrollbar with WebView scrollbar
Hey list! Am wondering how to go about synchronizing scroll bars between a JavaFX StyleClassedTextArea that uses a VirtualizedScrollPane and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found