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

Content of TableView with fixed cell size disappears after scrolling and re-adding items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx17
    • javafx
    • None

      Using a TableView control with fixed cell size, populated with some items, after scrolling to the end, and clearing the content and re-adding some more items, the content disappears.

      Only after clicking on the table or scrolling again, the items are back.

      The attached test reproduces the issue (with latest JavaFX 23-ea, or with any release from 17 to 22).

      TableView step 0.png shows the items after scrolling, but without removing them and adding them back.

      TableView step 1.png shows the issue, no visible items after scrolling, removing and adding the items back.

      TableView step 2.png shows the items back, after clicking on the control.

        1. ScrollingTableViewTest.java
          2 kB
        2. TableView step 0.png
          TableView step 0.png
          271 kB
        3. TableView step 1.png
          TableView step 1.png
          261 kB
        4. TableView step 2.png
          TableView step 2.png
          269 kB

            Unassigned Unassigned
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: