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

Removing from a node's styleClass does not remove styles

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: