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

Removing from a node's styleClass does not remove styles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx

      Calling getStyleClass().remove(someclass) does not seem to actually remove any of the styles that were set by the class. I've attached a simple example. Pressing the toggle button alternately calls add and remove on the label's getStyleClass(). After the first add, you'll see that the remove has no effect. I'm wondering if this is a regression from 2.1, but I no longer have a 2.1 system I can test on.

            dgrieve David Grieve
            bmellejfx Bill van Melle (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: