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

Using multiple font sizes in the htmlText property of the TextArea component causes the leading to shift

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Text, mx: TextArea
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:

      Compile the code below in Flex 3, or use the attached application file.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

      <mx:Script>
      <![CDATA[

      [Bindable]
      private var htmlText1:String = "<p><font size='20'>Example HTML Text Bug</font></p><br><p>This is all one paragraph of text, and should have a consistent leading, even though the header is a different font size. Notice that when the paragraph tag is closed, the leading changes. This should not occur.</p>";

      [Bindable]
      private var htmlText2:String = "<p><font size='20'>Example HTML Text Bug</font></p><br><p>This is all one paragraph of text, and should have a consistent leading, even though the header is a different font size. Notice that when I add a line break with
      n, the leading is fine. This is what we'd expect, only without injecting a new line manually.\n</p>";

      ]]
      >
      </mx:Script>

      <mx:TextArea
      width="100%"
      height="50%"
      htmlText="

      {htmlText1}

      " />

      <mx:TextArea
      width="100%"
      height="50%"
      htmlText="

      {htmlText2}

      " />

      </mx:Application>

      Actual Results:

      Leading is inconsistent in the last line in the first TextArea.

      Expected Results:

      Leading is consistent in the last line in the first TextArea.

      Workaround (if any):

      Add a line break to the htmlText string before closing the paragraph tag.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: