Hey Matt,

I switched to using a repeater, but had problems when using a repeater
inside of a VBox with height="100%". The repeated items weren't
limited to scroll within my vbox. 

I found that if i had a fixed height on the VBox my problem was
solved. So I ended up wrapping my VBox inside a canvas and binding the
height of the VBox to that of the Canvas

<mx:Canvas id="layout" height="100%" widht="100%">

   <mx:VBox width="100%" height="{ layout.height }">

      <mx:Repeater id="myRepeater" dataProvider="...">
         <zz:MyComponent source="{ myRepeater.currentItem }" />
      </mx:Repeater>

   </mx:VBox>

</mx:Canvas>


It seems as tho the VBox wanted a number rather than a percentage.

Andrew.



--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> You're saying that the initial render of the list puts big gaps in but
> once you scroll everything tightens up?  Your list has variableRowHeight
> set I assume?  Maybe you can try calling invalidate on the list to get
> it to rejigger itself?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Andrew Spaulding
> Sent: Thursday, June 09, 2005 2:09 AM
> To: [email protected]
> Subject: [flexcoders] Custom cellrender in a list
> 
>  
> 
> Hi,
> 
> In my current project Im trying to list a set of search results. My
> first thought was to use the Accordion control, but I need to put
> extra information in the headers and need the ability to 'expand all'
> search results. So the Accordion was pushed aside. (Would be nice to
> customise the Accordion Header and implement 'open/expand all panels'
> tho).
> 
> I have written a custom renderer that has a box at the top for the
> header. Im hoping i can implement a resize when this box is clicked.
> 
> To get to the point tho ;) When i list the search results using the
> list control they have HUGE gaps between them. But when I click and
> drag the vertical scroll bar, each cell in the list moves to be one
> after the other, like it should be.
> 
> Can any explain this behaviour? (I hope I make sense)
> 
> Andrew.
> 
> p.s. If someone could demonstrate how to customise the Accordion
> Header, or even implement an expand all accordion panes, that would be
> great too :p always worth asking hehe
> 
> 
> 
> 
> 
> ________________________________
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>         
> *     To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to