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

CornerRadii with different horizontal and vertical values treated as uniform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx23
    • 8, 9
    • javafx

      It appears as though it only uses the horizontal radius for each corner.
      I also suspect that the same issue is true of BackgroundFill's use of CornerRadii

          @Override public void start(Stage stage) throws IOException {

              Region region = new Region();
              region.setBorder(new Border(
                      new BorderStroke(
                              Color.RED,
                              BorderStrokeStyle.SOLID,
                              new CornerRadii(30, 10, 10, 30, 40, 20, 20, 40, false, false, false, false, false, false, false, false),
                              BorderWidths.DEFAULT))
              );
              StackPane root = new StackPane(region);
              Scene scene = new Scene(root, 300, 250);
              stage.setScene(scene);
              stage.show();
          }

            mstrauss Michael Strauß
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: