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

Dotted Border clipped to the outside

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: javafx

      Backports

        Description

        In the testcase below the dotted border seems to be clipped to the outside of the pane. Only semicircles are drawn. Spacing seems to be wrong as well. This looked fine with Java 8u31, but is wrong in Jav 8u45. So seems to be a regression, which may be related to RT-38418.


        public class DottedBorderWrong extends Application {

        @Override
        public void start(Stage primaryStage) throws Exception {
        Group group = new Group();
        Scene scene = new Scene(group);
        primaryStage.setWidth(500);
        primaryStage.setHeight(500);

          Pane pane = new Pane();
        pane.setPrefSize(350, 350);
        pane.setLayoutX(55);
        pane.setLayoutY(55);
        pane.setStyle("-fx-border-width: 8; -fx-border-color: blue; -fx-border-style: dotted;");

        group.getChildren().add(pane);
        primaryStage.setScene(scene);
        primaryStage.show();
        }

        public static void main(String[] args) {
        launch(args);
        }

        }

          Attachments

          1. DottedBorderJava8u31.png
            DottedBorderJava8u31.png
            44 kB
          2. DottedBorderJava8u45.png
            DottedBorderJava8u45.png
            47 kB
          3. StrokeType_Dashing.png
            StrokeType_Dashing.png
            72 kB
          4. RegionBorderTest.java
            5 kB
          5. borderstyles.html
            1 kB

            Issue Links

              Activity

                People

                • Assignee:
                  kcr Kevin Rushforth
                  Reporter:
                  sfuchsjfx Stefan Fuchs (Inactive)
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:
                    Imported: