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

Accordion CSS styling stops working after opening an FXML form with other controls (JavaFX 2.2 b13)

XMLWordPrintable

      Another new issue I'm facing with the latest JavaFX 2.2 b13 which wasn't present before... :(

      I'm using an accordion control with the following style:
      .titled-pane .title {
          -fx-alignment: center-left;
          -fx-cursor: "hand";
          -fx-focus-color: #555555;
          -fx-font-size: 12pt;
          -fx-font-weight: bold;
          -fx-text-fill: white;
      }

      .titled-pane:expanded {
          -fx-text-fill: white;
      }

      .titled-pane:expanded > .title {
          -fx-base: #555555;
          -fx-text-fill: white;
      }

      .titled-pane:hover > .title {
          -fx-base: #555555;
      }

      .titled-pane:hover {
          -fx-text-fill: white;
      }

      .titled-pane .arrow {
          -fx-opacity: 1;
      }


      When I first start the application the accordion works as expected, the tabs are higlighted if the mouse is over or if the pane is expanded

      In my app, I'm loading some FXML forms using a background Task. When I load an FXML form containing other controls: ListViews, Check boxes, etc and show it to the user the applied CSS of the accordion stops working. The accordion works but the titles of the titled panes do not repond to any mouse events and one of them is frozen to a highlighted state

            kwwong Kinsley Wong (Inactive)
            kiriljfx Kiril (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: