setting DropShadow as effect on Group vs setting individually on children returns different bounds results

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: fx1.2
    • Component/s: javafx

      Setting the DropShadow effect on the Group vs. on individual children in that Group returns different bounds results.
      It seems like boundsInLocal and boundsInParent should return the same result (though layoutBounds should be different).

      var g1:Group;
      Stage {
          var scene:Scene;
          scene: scene = Scene {
              width: 200
              height: 200
              content: g1 = Group {
                  effect: DropShadow {}
                  content: [
                      Rectangle {
                          x: 10 y: 30 width: 40 height: 40
                          fill: Color.WHITE
                      }
                      Rectangle {
                          x: 60 y: 30 width: 40 height: 40
                          fill: Color.BLACK
                          rotate: 45
                      }
                  ]
              }
          }
      }
      println("group1 boundsInLocal={g1.boundsInLocal}");
      println("group1 boundsInParent={g1.boundsInParent}");
      println("group1 layoutBounds={g1.layoutBounds}");

      var g2:Group;
      Stage {
          var scene:Scene;
          scene: scene = Scene {
              width: 200
              height: 200
              content: g2 = Group {
                  content: [
                      Rectangle {
                          x: 10 y: 30 width: 40 height: 40
                          fill: Color.WHITE
                          effect: DropShadow {}
                      }
                      Rectangle {
                          x: 60 y: 30 width: 40 height: 40
                          fill: Color.BLACK
                          rotate: 45
                          effect: DropShadow {}
                      }
                  ]
              }
          }
      }

            Assignee:
            Kevin Rushforth
            Reporter:
            Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: