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

DropDownList throws RTE with -locale= for runtime localization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: Adobe Flex SDK 4.1 (Release)
    • Fix Version/s: None
    • Component/s: Spark: DropDownList
    • Labels:
      None
    • Environment:
      Affected OS(s): Mac
      Affected OS(s): Mac OS 10.5
      Browser: Safari
      Language Found: English

      Description

      Steps to reproduce:
      1. Create a project with -locale= (blank so as to allow fro runtime localization as described in http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f3c.html
      2. Add a DropDownList to the Application with at least one item entry containing textual content that is rendered larger than the width of the DropDownList (to perform truncation).
      3. Select the long item from the DropDownList.

      Actual Results:
      RTE thrown:

      ReferenceError: Error #1069: Property -1 not found on _AS3_.vec.Vector.<flash.display::DisplayObject> and there is no default value.
      at spark.components::Label/truncateText()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Label.as:1246]
      at spark.components::Label/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Label.as:485]
      at spark.components.supportClasses::TextBase/measure()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\TextBase.as:533]
      at mx.core::UIComponent/measureSizes()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8216]
      at mx.core::UIComponent/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8140]
      at mx.managers::LayoutManager/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:617]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:733]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

      Expected Results:
      Truncation of selected item without RTE.

      Workaround (if any):
      Use <s:ComboBox> or <mx:ComboBox>

        Attachments

          Activity

            People

            • Assignee:
              adobejira Adobe JIRA
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: