Thank you yigit .. I decided to go for this solution, although it was a bit
of a hack ;-). It does work though so I'm happy.
On 29/01/2008, yigit <[EMAIL PROTECTED]> wrote:
>
> an extension to quick solution :
> if you can handle the cost of setting creationPolicy all in veiwStack ;
> use:
> <mx:ViewStack width="{vbox.selectedItem.dataProvider.length * 30}" />
> bjorn - wrote On 01/29/2008 03:32 PM:
> > Thanks for that - but each buttonbar contains dynamic data, so it's
> > not given that the first should be smaller than the second etc.
> >
> > I guess I could count the data, and then do some calculation on the
> > height -- but it seems a bit hackish....
> >
> >
> > On 29/01/2008, *yigit* <[EMAIL PROTECTED] <yboyar%40gmail.com> <mailto:
> [EMAIL PROTECTED] <yboyar%40gmail.com>>>
> > wrote:
> >
> > a quick solution :
> > <mx:ViewStack width="{vbox.selectedIndex == 0 ? 200 : 500}"
> > id="vbox" />
> > bjorn - wrote On 01/29/2008 02:56 PM:
> >
> >
> > > I've got three ButtonBars in a ViewStack, but this doesn't seem to
> > > work too well.
> > >
> > > The problem is that if I don't specify a height on the ViewStack all
> > > the ButtonBar's take the height of the first one. If the first one
> > > only has two elements while the next ones have ten, that's a problem.
> > >
> > > If I do specify a height the first one doesn't look good since it
> > will
> > > add spacing between the two buttons to make it fill the whole height.
> > >
> > > I also tried calling .invalidateSize() on the selected ButtonBar to
> > > make it resize itself but to no avail ..
> > >
> > > Can I tell it to align at top or something with less spacing between
> > > each button? (verticalAlign=top didn't do much ..)
> > >
> > > --
> > >
> > > ========================
> > > http://www.juicability.com <http://www.juicability.com/>
> > <http://www.juicability.com <http://www.juicability.com/>> - flex blog
> > > http://www.43min.com <http://www.43min.com/>
> > <http://www.43min.com <http://www.43min.com/>> - funny movies
> > >
> >
> >
> >
> >
> > --
> >
> > ========================
> > http://www.juicability.com <http://www.juicability.com> - flex blog
> > http://www.43min.com <http://www.43min.com> - funny movies
> >
>
>
>
--
========================
http://www.juicability.com - flex blog
http://www.43min.com - funny movies