I need it to be 100%... its on a component that goes in different places on my application. I can't set it =/
Any other idea? I'm trying to set the textarea's height when i load it but it doesnt seem to be getting the right height. I tested a simple example like the following one and if you run it you will see that when you open its bigger than the text but when you start typing it gets back to the right size. <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="update();"> <mx:Script> <![CDATA[ import mx.events.FlexEvent; public function update():void { src.explicitHeight = src.textHeight + 10; src.dispatchEvent(new KeyboardEvent("KEY_DOWN")); } ]]> </mx:Script> <mx:Panel title="TextArea Control Example" height="75%" width="75%" paddingTop="10" paddingLeft="10"> <mx:TextArea id="src" change="update()"> <mx:htmlText> <![CDATA[ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ]]> </mx:htmlText> </mx:TextArea> </mx:Panel> </mx:Application> --- In [email protected], "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Text will wrap, but only if you tell it how wide it should be. > > -Josh > > On Thu, Aug 7, 2008 at 12:59 PM, 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 > > > > > > > > ------------------------------------ > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >

