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

Setting hitarea on a label has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • mx: Label
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a label object, add a sprite as a child (setting sprite.mouseEnabled=false, etc. to ensure proper hitarea behavior) with dimensions smaller than the label. Set the label's hitarea to be the sprite.
      2. Give the label a tooltip or subscribe to its click event.
      3. Observe that tooltips and clicks occur for the whole label, not just the hit area.
      4. Observe that if you replace the label declaration with a button or LinkButton declaration, hitArea behaves as expected.

      Actual Results: label's hitArea property does not affect its behavior. I have not tested other components, so this may apply more broadly than this one instance

      Expected Results: Either hitArea should be enabled, or label should not have a hitArea property.

      Workaround (if any): Using a disabled LinkButton with various settings changed can create a control that appears like a label but works with HitArea

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: