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

ListView scrollTo jumps to wrong location when CellHeight is changed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • jfx17
    • jfx19
    • javafx
    • JavaFX17, OS independent¬†

    Backports

      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

          1. ListViewScrollToBug.gif
            149 kB
            Florian Kirmaier
          2. ListViewScrollToBug.java
            3 kB
            Florian Kirmaier
          3. ListViewScrollToBug-1.java
            3 kB
            Florian Kirmaier
          4. ListViewScrollToBug-2.java
            3 kB
            Florian Kirmaier
          5. ListViewScrollToBug-3.java
            4 kB
            Florian Kirmaier
          6. ListViewScrollToUnitTest.java
            6 kB
            Florian Kirmaier
          7. ListViewScrollToUnitTest-2.java
            7 kB
            Florian Kirmaier

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: