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

Error generated when referencing a constant color defined in CSS root from an inline style on a node contained within a CustomMenuItem

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.0
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      XP, b42

      Description

      I think there's a good chance this is related to RT-16215, but since it doesn't require applying custom CSS classes to trigger this error I thought it best to file separately.

      If you create a CustomMenuItem whose node references a constant color defined in your CSS .root class via its inline style (set through setStyle()), an error is thrown because it can't resolve the color definition. In my attached sample app, you'll see that I can successfully reference the color/paint definition "-pal-SystemBlue" defined in test.css on my top-level SplitMenuButton, but the HBox that is contained within a CustomMenuItem cannot reference it without causing errors.

        Attachments

        1. Main.java
          2 kB
        2. test.css
          0.0 kB

          Activity

            People

            • Assignee:
              dgrieve David Grieve (Inactive)
              Reporter:
              kmcintyrejfx Kyle McIntyre (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: