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
          199 kB
          Jose Pereda
        2. table1.png
          204 kB
          Jose Pereda
        3. table2.png
          200 kB
          Jose Pereda
        4. TableViewBug.java
          2 kB
          Jose Pereda

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

              Created:
              Updated:
              Resolved: