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

Add option that would dissalow effect ti cascades down to all nodes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.1, 7u6
    • javafx
    • Windows 7 x64, JDK7 (u5) or (u6ea b14) , JavaFX 2.1 or 2.2 (b13)

      If "-fx-effect" CSS property is set on a container such as an AnchorPane or a BorderPane, that property
      gets applied to all descendents of the Pane.
      This is not the intended behavior, the -fx-effects should be applied only to the container, and not its descendents.

      I am attaching a sample FXML + CSS, the label text should not be "drop-shadowed" but it is, because the parent
      AnchorPane has a drop shadow effect applied via CSS property.

      The same behavior is observed, when the effect is added via java code instead of CSS.

      The effect can be seen in SceneBuilder as well as the final app.

      Relevant discussion on the JavaFX Forum @
      https://forums.oracle.com/forums/thread.jspa?messageID=10400861

        1. Panel.fxml
          0.7 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          35 kB
        3. skin.css
          0.2 kB

            Unassigned Unassigned
            duke J. Duke
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: