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

[Region] After RT-38297, rectangular Region borders are drawn incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u40
    • javafx
    • None

      RT-38297 added support for INNER and OUTER strokes to NGRegion. Region code that takes care of rectangular borders still expects that INNER and OUTER strokes are rendered as CENTERED.
      Sample code:

          @Override
          public void start(final Stage stage) throws Exception {

              StackPane pane = new StackPane();
              pane.setPadding(new Insets(10));

              StackPane child = new StackPane();
              child.setStyle("-fx-border-color:black;");

              pane.getChildren().add(child);

              stage.setScene(new Scene(pane, 300, 300));
              stage.show();
          }

            msladecek Martin Sládeček
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: