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

TableView not rendered correctly after column is made visible if fixed cell size is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx21
    • jfx20
    • javafx
    • None
    • b12

      After JDK-8218826, when using a TableView control with fixed cell size set, showing a column that was previously hidden doesn't lay it out correctly.

      The attached test shows the case.

      Running the test with any JavaFX version earlier than 20-ea+2 works as expected:

      - Run test, column 1 and 3 are shown (see Table0.png)
      - Select CheckBox, column 2 is also shown and correctly rendered (see Table1.png)

      But running with JavaFX version 20-ea+2 or greater fails:

      - Run test, column 1 and 3 are shown (see Table0.png)
      - Select CheckBox, column 2 is not fully shown (only column table header) (see Table2.png)

      The test runs fine selecting three times the checkbox, forcing a relayout (like resizing the stage) or if fixed cell set is not set.

        1. table0.png
          table0.png
          199 kB
        2. table1.png
          table1.png
          204 kB
        3. table2.png
          table2.png
          200 kB
        4. TableViewBug.java
          2 kB

            mhanl Marius Hanl
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: