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

Setting focus with a zero size component and focusThickness causes RTE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Apache Flex 4.13.0, Apache Flex 4.14.0
    • Fix Version/s: Apache Flex 4.14.0
    • Component/s: Focus Manager
    • Labels:
    • Environment:
      Adobe AIR

      Description

      HighlightBitmapCaptureSkin.updateDisplayList() may instantiate a BitmapData object with a zero area which will cause a ctor runtime error #2015.

      Steps to reproduce: run the attached AIR application mxml.

      RTE:
      ArgumentError: Error #2015: Invalid BitmapData.
      at flash.display::BitmapData/ctor()
      at flash.display::BitmapData()
      at spark.skins.spark::HighlightBitmapCaptureSkin/updateDisplayList()[C:\Users\evolverine\Adobe Flash Builder 4.7\FLEX-34649\src\spark\skins\spark\HighlightBitmapCaptureSkin.as:171]
      at spark.skins.spark::FocusSkin/updateDisplayList()[C:\Users\evolverine\workspace\sdk\frameworks\projects\spark\src\spark\skins\spark\FocusSkin.as:126]
      at mx.core::UIComponent/validateDisplayList()[C:\Users\evolverine\workspace\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:9531]
      at mx.managers::LayoutManager/validateDisplayList()[C:\Users\evolverine\workspace\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:744]
      at mx.managers::LayoutManager/doPhasedInstantiation()[C:\Users\evolverine\workspace\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:827]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[C:\Users\evolverine\workspace\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1188]

        Attachments

        1. Main.mxml
          0.4 kB
          Marcus Wilkinson

          Activity

            People

            • Assignee:
              evolverine Mihai Chira
              Reporter:
              marcus_sparkus Marcus Wilkinson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: