Styling table using css in TableRow.updateItem doesn't work propperly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • Environment:

      Win7 x64, JDK8 b114

      Style is not applied correctly when styling rows depending on the item using getStyleClass().add()/remove() in TableRow.updateItem() and sorting the table, or adding new items.

      1) Launch the attached example app (TableSample.java and test.css)
      2) Press the column headers a couple of times to sort the table
      Result) The rows are not styled appropriately (names starting with E should not be opaque)
      3) Press the ‘Add items’ button a couple of times
      4) Scroll down
      5) Repeat step 3-4
      Result) The styling is not always correct, also the update flickers

        1. TableSample.java
          4 kB
          Johan Ringdahl
        2. test.css
          0.0 kB
          Johan Ringdahl

            Assignee:
            David Grieve
            Reporter:
            Johan Ringdahl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: