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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: None
    • Component/s: javafx

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: