Hi,

> Yes. To force a Label to be single line.

I guess that makes sense when you have MultiLineLabel. So should it ignore <br 
/>’s in html=“…<br />….” then?

> If you want the text to wrap, use MultiLineLabel.

The header docs for MultiLineLabel could do with an update I think, other than 
it name it’s hard to know what it doing from looking at the code. It's multi 
line because it commits code that label includes basically.

/*
*  Label probably should extend TextField directly,
*  but the player's APIs for TextLine do not allow
*  direct instantiation, and we might want to allow
*  Labels to be declared and have their actual
*  view be swapped out.
*/

  /**
   *  The Label class implements the basic control for labeling
   *  other controls.  
   *  
   *  @langversion 3.0
   *  @playerversion Flash 10.2
   *  @playerversion AIR 2.6
   *  @productversion FlexJS 0.0
   */ 

Also might be easier understood if it had an explicit set of whiteSpace in 
there?
element.style.whiteSpace = “normal";

Thanks,
Justin

Reply via email to