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

CSS styling is 'erased' when removing classes from a control

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • 9
    • 8u20, 8u25, 8u31, 8u40
    • javafx
    • Windows7

    Description

      A control has a text field which can be formatted using DecimalFormat, the format string can be set with a styleable property. In this scenario this property is set via setStyle(). This works initially, but as soon as totally unrelated classes are removed from the control, the styleable property reverts to its initial value, but the style string is unchanged!

      This behavior is introduced in 8u20 and still present in 8u40, in 8u00 it works as intended.

      To quickly see this in real life: checkout JFXtras labs from github, open the project in an IDE, and start the SimpleMetroArcGaugeTrail1 class. It's the gauge with the "W" in the text, at first.

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            tbee Tom Eugelink
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: