Set the width - but DON'T set the height... as in Josh's example.  
Setting the width causes word wrapping, but if you also set the 
height, it fixes the height - not allowing it to grow (adding 
scrollbars).  If you only set the width and don't even put the height 
property in there (i.e. <mx:Text width='100%'></mx:Text>), it wraps 
the text and *dynamically* grows the text height to wrap lines 
without the use of scrollbars! :D  Hope that helps a little..
-Nathan


--- In [email protected], "Rafael Faria" 
<[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> 
> I need some advise.
> 
> I'm creating a list and i need to insert some HTML text (i need to 
use
> bold) and it needs to wordwrap it.
> 
> I tried Text but it doesnt seem to have wordwrap capability. The 
only
> reason i found so far is use a Textarea and take off the borders and
> background and not let it be editable. It works how i want but with 
a
> little problem, the variable row doesnt seem to be working. My guess
> would be that my textarea is not increasing according the size of 
the
> text in the textarea.
> 
> Is there anyway to set the textarea height according to the content 
it
> has or anyother suggestion to make this html wordwrap itemrenderer
> inside the list work?1
> 
> Please, enlight me. :p
> 
> raf
>


Reply via email to