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

Pannable ScrollPane behaves badly when content changes during panning

XMLWordPrintable

      In my app I need pannable ScrollPane with content that gets added gradually as it is loaded from internet. Unfortunately when some content is added to the ScrollPane it jumps to some other location and it looks ugly.

      1. Run the attached sample,
      2. Press "Z" key several times to get random content to fill twice the window height.
      3. Scroll the pane down and start to pan it.
      4. While panning continue to press "Z" key to add more content.
      RESULT: ScrollPane content jumps up and down ugly.

        1. Bug.java
          2 kB
          Alexander Kuznetcov

            miflemi Mick Fleming
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: