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

text becomes single-line with new stylesheet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • Adobe Flex SDK Previous
    • None
    • mx: Text
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run attached Flex project.

      Actual Results:
      The top Text control (with embedded fonts) doesnt word wrap correctly (at all).
      The bottom Text control (with _sans font) does.

      Expected Results:
      Both Text controls should wrap.

      Workaround (if any):
      From Alex: "Any component has to re-create its TextField in the embeddedFont SWF's context and Text doesn't override that and set the multiline flag."

      package
      {
      import mx.controls.Text;

      public class MyText extends Text
      {
      override protected function measure( ) : void

      { textField.multiline = true; textField.wordWrap = true; textField.mouseWheelEnabled = true; super.measure( ); }

      }
      }

      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: