--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Amy" <amyblankenship@> wrote:
> >
> > I have a TileList that is inside a Canvas that is set to 
> > clipContent="true".  The reason for this is that when the user 
> makes 
> > a selection from the TileList, the TileList "slides" to one side 
> and 
> > another TileList (really the same TileList) slides in with 
> different 
> > information.
> > 
> > The problem is that I can't get a vertical scroll bar on the 
> TileList 
> > without setting verticalScrollPolicy to "on".  I don't want it on 
> all 
> > the time, just when the number of itemRenderers is more than what 
> can 
> > be shown at one time.
> > 
> > Here's what I've tried:
> > 
> > Setting the height of the TileList to be explicitly the same as 
the 
> > container,minus the height of a button that's above it.  Setting 
> the 
> > maxHeight to the same measure.  Setting minHeight to 0.
> > 
> > I looked at the value of scrollRect on the TileList in debug, and 
> > it's null.  Not sure if that's relevant.
> 
> It looks like even though the columnCount is set to 1, it's 
wrapping 
> to a new column.  Any ideas how I can get it to stay in just one 
> column and not wrap?  I'd rather not have to make a List_withStyle 
> component, so my preference is to stick with TileList.

OK, so I went back and read the docs and found that, 
counterintuitively, if you want a vertical scrolling TileList, you 
need to set its direction to Horizontal and set its maxColumns to 1.



Reply via email to