I'm not sure but I'd love to know of a cleaner
solution than what I've been using which is:

rowCount = dataProvider.length;

                        var _totalHeight:Number = 0;

                        for(var i:int=0;i<rowCount;i++)
                        {
                                try{
                                        _totalHeight += 
rowInfo[indexToRow(i)].height+4;
                                } catch (e:Error){};
                        }
                        
                        
i just  set the height of the dataList to _totalHeight
but there HAS to be a better way... any suggestions?

Peter Anselmo

--- Ariel Jakobovits <[EMAIL PROTECTED]> wrote:

> To: [email protected]
> From: Ariel Jakobovits <[EMAIL PROTECTED]>
> Date: Thu, 7 Jun 2007 19:46:51 -0700 (PDT)
> Subject: [flexcoders] list size - auto match
> contents
> 
> is there a setting for a list that will size the
> control to fit the data but no more / no less?
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ:
>
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
>
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

Reply via email to