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

Region ignores any transforms set in Shape

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • javafx
    • None

      Region ignores any transforms set in Shape set Region#setShape()

      Testcase:
      @Override
      public void start(Stage stage) throws Exception {
          Region region = new Region();
          region.setBackground(new Background(new BackgroundFill(Color.RED, null, null)));
          final Shape shape = new Circle(30);
          shape.setScaleX(2); // IS THIS GETTING IGNORED ?
          region.setShape(shape);
          region.setScaleShape(false); //lets make this obvious
          Group group = new Group(region);
          region.setLayoutX(100);
          region.setLayoutY(100);
          region.setPrefSize(100, 100);
          Scene scene = new Scene(group, 300, 300);
          stage.setScene(scene);
          stage.show();
      }

            Unassigned Unassigned
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: