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

[TLFTextField] Rendering differences between TextField and FTETextField

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Spark: FTETextField
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Found in 4.0.0.10912

      Steps to reproduce:
      1. Compile and run attached MXML file.

      Actual Results:
      The TextField is red, underlined and not bold (correct), but no line breaks (incorrect?!)
      The FTETextField is black (incorrect), underlined and not bold (correct), with line breaks (correct)

      Expected Results:
      The FTETextField should use the specified text color (red/0xFF0000)

      Workaround (if any):
      n/a


      <?xml version="1.0" encoding="utf-8"?>
      <!-- -->
      <s:Application name="Spark_FTETextField_test"
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/halo"
      creationComplete="init();">
      <s:controlBarContent>
      <s:Label id="sdkVer" initialize="sdkVer.text = mx_internal::VERSION;" />
      </s:controlBarContent>

      <fx:Script>
      <![CDATA[
      import mx.core.*;

      private function init():void

      { var fmt_unbold_underline_red:TextFormat = new TextFormat(); fmt_unbold_underline_red.bold = false; fmt_unbold_underline_red.color = 0xFF0000; fmt_unbold_underline_red.underline = true; var tf:TextField = new TextField(); tf.defaultTextFormat = fmt_unbold_underline_red; tf.htmlText = "[TextField]<p>The <b>quick brown fox</b> jumps over the lazy dog.</p><p>Para 2<br/>Para 2.1</p>"; tf.autoSize = TextFieldAutoSize.LEFT; tf.y = 10; parentObj.rawChildren.addChild(tf); var fte:FTETextField = new FTETextField(); fte.defaultTextFormat = fmt_unbold_underline_red; fte.htmlText = "[FTETextField]<p>The <b>quick brown fox</b> jumps over the lazy dog.</p><p>Para 2<br/>Para 2.1</p>"; fte.autoSize = TextFieldAutoSize.LEFT; fte.y = 50; parentObj.rawChildren.addChild(fte); }

      ]]
      >
      </fx:Script>

      <s:VGroup x="20" y="20">
      <mx:Canvas id="parentObj" />
      </s:VGroup>

      </s:Application>

      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: