-
Notifications
You must be signed in to change notification settings - Fork 563
8328167: ScrollTo in ListView still doesn't work since VirtualFlow was modified #2041
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
base: master
Are you sure you want to change the base?
Conversation
…r end of list The issue occurred when scrolling to items near the end of the list, particularly after adding new items.
|
Hi @winrid, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user winrid" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
❗ This change is not yet ready to be integrated. |
|
/signed |
|
Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
|
I would like to note that I signed the OCA, but I followed the guide in the repo before creating the PR, and that guide does not say to |
|
Hi @winrid |
|
@johanvos For sure, would simply asserting via a stub that |
Should fix: https://bugs.openjdk.org/browse/JDK-8328167?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
I have an application with a TableView that adds items and scrolls to them, and it's very important the last added item is visible to the user. When the first item is added that triggers the scroll, and you do a
platform.runLater -> scrollTo(lastNewItem)the scrollTo does not work.I think this is because of something to do with rendering phases, as two nested runLaters do work it seems, but that's pretty naughty.
I tried adding a test for this but I think the way the javafx tests runs differ a bit from an actual app? I am happy to add a test maybe with a recommendation on the approach. I have a reproducer with documentation here: https://github.com/winrid/jfx-jdc-8328167-scrollto-reproducer
Progress
Error
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/2041/head:pull/2041$ git checkout pull/2041Update a local copy of the PR:
$ git checkout pull/2041$ git pull https://git.openjdk.org/jfx.git pull/2041/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2041View PR using the GUI difftool:
$ git pr show -t 2041Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/2041.diff