Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277785

ListView scrollTo jumps to wrong location when CellHeight is changed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: openjfx17
    • Fix Version/s: openjfx19
    • Component/s: javafx
    • Labels:
    • Environment:

      JavaFX17, OS independent 

      Description

      In some situations, the ScrollTo methods land in the wrong place.
      Sometimes it "overjumps" the last element.
      Sometimes it doesn't scroll to the bottom.

      We've provided a test class, which shows the problem, and a small gif, which shows it in video form.

      This worked with JavaFX16, but does not work with JavaFX17, and is therefore probably related to the rewrite of VirtualFlow

      It might be the same bug as the following: https://bugs.openjdk.java.net/browse/JDK-8276553

      Thanks to Sedov Eduard for working on this bug.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jvos Johan Vos
              Reporter:
              fkirmaier Florian Kirmaier
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: