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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      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();
          }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: