Managed to get the behavior I want in this case by binding the popup
Mike, I didn't get a chance to try your solution but I managed to get
the behavior I wanted by binding the popups width and height values to
values of its children.
height="{ (dropDown.height > descriptorBox.height)? (dropDown.height +
50) : (descriptorBox.height + 50) }"
width="{ (descriptorBox.descriptionContainer.visible)?
(descriptorBox.width + 185) : 250 }"
Its a bit messy but it works in this case.
--- In [email protected], "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I gave an example of this about 1 week or two ago, but since a
popups width
> and height have to be explicitly set to size correctly, try the
following
> when you know the list dataProvider is complete;
>
> myPopUp.width = NaN;
> myPopUp.height = NaN;
>
> My example last week went way farther than this, I think this might work
> though.
>
> Peace,
> Mike
>
> On Mon, Sep 15, 2008 at 5:01 PM, djepyon <[EMAIL PROTECTED]> wrote:
>
> > I have a popup with some buttons and a list in it. When you press a
> > button it assigns a new value to the dataProvider. Initially the popup
> > fits snug around the List but when the dp changes and the List grows
> > or shrinks the container that is the popup doesn't resize with it. Is
> > validateNow() the solution to this sort of thing? Perhaps I need to
> > listen for a resize event on the List and then force validation on its
> > container?
> >
> >
> >
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>