Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25185

mx.skins.halo.ScrollArrowSkin highlight is draw incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • Themes
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 8.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a Scrollbar (any kind)
      2. set "highlight-alphas" to an easily predictable value (eg: [1, 0])
      3. use the same setting on a regular Button
      4. run the application and observe the difference

      Actual Results:
      The button highlight will fade to 50% of the Button's height.
      The scroll button highlight will be applied over the entire ipArrow and downArrow instance height.

      Expected Results:
      The button highlight should appear identical for both types of buttons.

      Workaround (if any):

      The problem lies in ScrollArrowSkin. Everywhere in the highlight code it is written as: " h - 2 / 2" which evaluates to h - 1. This is nearly 100% of the instance's height value. Contrast this with mx.skins.halo.ButtonSkin where the code is written "(h - 2) / 2" which is approximately half of the button's height (the upper half). I think it is obvious that ButtonSkin is working correctly, while ScrollArrowSkin is not.

      The workaround is to copy the ScrollArrowSkin and fix the problem yourself by inserting the required parentheses.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: