Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.0 (Release)
-
None
-
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="
" />
<mx:TextArea
width="100%"
height="50%"
htmlText="
" />
</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.