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

FTETextField RTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.1 (Release)
    • mx: Form View
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the bug file for https://bugs.adobe.com/jira/browse/SDK-25949 (Enable FTE Text when you compile).
      2. Select rtl from the dropdown.
      3.

      Actual Results:

      RangeError: The supplied index is out of bounds.
      at mx.core::FTETextField/getLineMetrics()[/Users/cframpto/dev/4.x/frameworks/projects/spark/src/mx/core/FTETextField.as:2234]
      at mx.core::UIFTETextField/get baselinePosition()[/Users/cframpto/dev/4.x/frameworks/projects/spark/src/mx/core/UIFTETextField.as:737]
      at mx.controls::Label/get baselinePosition()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/controls/Label.as:417]
      at mx.containers::FormItem/updateDisplayList()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/containers/FormItem.as:840]
      at mx.core::UIComponent/validateDisplayList()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/core/UIComponent.as:8680]
      at mx.core::Container/validateDisplayList()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/core/Container.as:3296]
      at mx.managers::LayoutManager/validateDisplayList()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:663]
      at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:736]
      at mx.managers::LayoutManager/validateNow()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:795]
      at spark.components::Application/resizeHandler()[/Users/cframpto/dev/4.x/frameworks/projects/spark/src/spark/components/Application.as:1215]
      at spark.components::Application/commitProperties()[/Users/cframpto/dev/4.x/frameworks/projects/spark/src/spark/components/Application.as:938]
      at mx.core::UIComponent/validateProperties()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/core/UIComponent.as:7904]
      at mx.managers::LayoutManager/validateProperties()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:572]
      at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:730]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/cframpto/dev/4.x/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1072]

      Even though get baselinePosition does a validateNow() before it tries to access the textLines, validateNow short circuits and doesn't create the text lines.

      Expected Results:

      Workaround (if any):

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: