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

Mobile: Setting strokeWidth to 0 should leave a hair-line default stroke around the shape

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • fx1.0
    • javafx

      As per the API documentation, setting the stroke width to 0 should still leave a hair-line stroke around the shape and should not entirely remove the stroke. Here is what is given in the API Doc -

      ---
      A value of 0.0 specifies a hairline stroke.
      ----

      I see this happening properly on Desktop but on Mobile, the stroke completely disappears when setting the stroke width to 0. To reproduce the bug, deploy the attached application on the emulator using JavaFXPackager and do the following -

      1. Press '1' a few times to choose 'Stroke-only' mode
      2. Press '3' a few times to choose a darker stroke color
      3. Press '6'. This will increase the stroke width. After reaching 20, it resets to 0.
      4. Now check if you see a hair-line stroke. If it is not shown, it is a bug.

      I reproduced it on WinXP SP3 - JavaFX SDK 1.0.1-b02.

        1. ArcTest.fx
          5 kB
          Praveen Mohan
        2. ControlModel.fx
          10 kB
          Praveen Mohan

            ailjin Artem Iljin (Inactive)
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: