Thanks. Yes, I did that, although my value came out to 29. I was hoping for a more general solution which would work no matter which style was applied.
Naveen Booma wrote: > > Hi, > > The solution I came across for this is, find out the length of each data > provider (Array collection) and multiply with 20 (try different values) > and > so depending on the length, the height of the list will automatically > resize. > > For example : > > _tier.height = tierData.length * 20; > > > where > tierData:ArrayCollection; > _tier:List; > > -Naveen > > > > On Sun, Oct 12, 2008 at 3:26 AM, Mark Carter <[EMAIL PROTECTED]> > wrote: > >> >> I have a PopUpButton with List popup control where I occasionally change >> the >> dataprovider at runtime. >> >> However, when I change the dataprovider I want the popup control to >> resize >> to the number of items in the list. >> >> At the moment, I just set the height as a factor of the number of items, >> but >> is there a cleaner way? >> -- >> View this message in context: >> http://www.nabble.com/Auto-resizing-a-list-popup-control-of-a-PopUpButton-tp19939312p19939312.html >> Sent from the FlexCoders mailing list archive at Nabble.com. >> >> >> > > -- View this message in context: http://www.nabble.com/Auto-resizing-a-list-popup-control-of-a-PopUpButton-tp19939312p19974140.html Sent from the FlexCoders mailing list archive at Nabble.com.

