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

No header CSS applied if TreeTableView and TableView used in same app

    Details

      Description

      This is cased but a bug in CSS cache for rules like

      .table-view .column-header-background,
      .tree-table-view > .column-header-background {
          -fx-background-color: -fx-body-color;
          -fx-padding: 0;
      }

      the cache only takes into account the set of rules that match a node, if two nodes have same set of rules they get the same cache result. in this case the first control create the cache entry and second control gets same cache entry. but the cache entry dosn't apply to the second node so it gets no styling. At least this is my understanding.

      If you break apart rule to look like:

      .table-view .column-header-background {
          -fx-background-color: -fx-body-color;
          -fx-padding: 0;
      }
      .tree-table-view > .column-header-background {
          -fx-background-color: -fx-body-color;
          -fx-padding: 0;
      }

      then it works fine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgrieve David Grieve
                Reporter:
                jasper Jasper Potts
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: