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

Unable to scroll ScrollPane when hovered #12

Open
flexibo opened this issue May 16, 2024 · 1 comment
Open

Unable to scroll ScrollPane when hovered #12

flexibo opened this issue May 16, 2024 · 1 comment

Comments

@flexibo
Copy link
Contributor

flexibo commented May 16, 2024

The current version does not allow scrolling if the ScrollPane is unselected unless the scrollbar is clicked. Note that the code is referenced from part 4 of the guide.

Untitled video - Made with Clipchamp (1)

Using ChatGPT, I find that this fix works by changing the way we automatically scroll to the bottom, but I do not fully understand why the initial version will cause the above issue.

MainWindow.java:

    @FXML
    public void initialize() {
        //scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());
        dialogContainer.heightProperty().addListener((observable, oldValue, newValue) -> scrollPane.setVvalue(1.0));
    }
@damithc
Copy link
Contributor

damithc commented May 21, 2024

@flexibo Thanks for this suggestion. Will look into it in due course.

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

No branches or pull requests

2 participants