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

Explicitly setting strokeDashArray to its default value causes a difference in appearance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • fx1.0
    • javafx
    • JavaFX 1.0.1 b02, Windows XP Prof, 6u12 b03

      This is reproducible with javafx 1.0.1 b02 on desktop. This works fine on mobile.

      I'm showing a Rectangle with strokeDashArray set to [1.0] which is its default value. This shows a difference in the appearance of Rectangle's stroke - it looks as if stroke is broken at some points. To reproduce, run the below code.

      import javafx.scene.*;
      import javafx.stage.*;
      import javafx.scene.shape.*;
      import javafx.scene.paint.*;

      Stage {
          scene: Scene {
              content: Rectangle {
                  width: 80
                  height: 60
                  x: 40
                  y: 40
                  fill: Color.BLUE
                  stroke: Color.RED
                  strokeWidth: 20
                  strokeDashArray: [1.0]
              }
          }
          width: 200
          height: 200
      }

            kcr Kevin Rushforth
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: