Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile & run
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
height="800" width="1000"
paddingTop="8" verticalGap="0">
<fx:Script>
<![CDATA[
import mx.collections.*;
import mx.controls.*;
import mx.events.*;
import mx.managers.*;
public function initTextComponent():void
{ testText.htmlText = "This is a <b>Text</b> component that contains <i>html</i><br>The <b>Slider</b> controls the alpha of the <b>Image</b> instance."; } ]]
>
</fx:Script>
<mx:VBox>
<mx:Button click="trace(Object(testText.getChildAt(0)).numLines)"/>
<mx:Text id="testText" width="100" fontFamily="Verdana" creationComplete="initTextComponent()" />
</mx:VBox>
</mx:Application>
Result:
Text breaks in different places on Mac & Win. See attached screenshots. Found in 10_2_151_34.
Expected:
Text shouldn't break differently. This is a regression 10_2_150_103 doesn't have the issue.