Hi Amy,

Try setting resizeToContent="true" on the ViewStack tag.

-TH

--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> I have a ViewStack that contains a TileList and some other components
> that have a variable number of children and thus a variable height.
> It seems that the ViewStack decides how big it will be before all the
> children are finished sizing.
>
> I've tried adding logic in my override to commitProperties,
> updateDisplayList, and measure that set the height of the ViewStack
> directly based on the height (and I've also tried measuredHeight) of
> the VBox I have in the first child of the ViewStack. I've also tried
> setting a bindable variable in these places that sets the height and
> binding to that.
>
> My results are this:
>
> commitProperties--never gets to the full height
> updateDisplayList--stalls out (infinite loop?)
> measure--stalls out (infinite loop?) with bound variable, never
> reaches full height with setting the property directly
>
> Is there any way to use a ViewStack to simply change out the view
> without _having_ any height? Alternatively, is there a way to
> persuade it to wait until the children are sized to decide how big it
> is or to look at the size again when the children are done sizing?
>
> Thanks;
>
> Amy
>



Reply via email to