Pivot
  1. Pivot
  2. PIVOT-71

Dash array (focused state) values are incorrect

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      OpenJDK

      Description

      We've been using

      {0.0f, 2.0f} as our dash array for the skins that paint a dashed line to represent the focused state. These values are incorrect, and we got lucky in that Sun's graphics runtime interpreted them the way they did. The dash array {0.0f, 2.0f}

      means "repeatedly draw a dash of length 0.0f followed by a gap of 2.0f", which really means "don't draw anything"! However, because Sun's runtime interprets a dash of length zero at a non-zero thickness to yield a pixel hit. This interpretation is not shared by other JREs. NOTE, what we were going for was a dash of length 1 followed by a gap of length 1, and

      {1.0f, 1.0f}

      yields the exact same behavior on the Sun JRE as we had before, but it also yields correct behavior in other JREs. Thus, we should change all instances of the old dash arrays to the new.

        Activity

        Todd Volkert made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Todd Volkert created issue -

          People

          • Assignee:
            Todd Volkert
            Reporter:
            Todd Volkert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development