If you want to get the height of children of any container including boxes,
you are going to need to look at the size of the children themselves.  So if
you want the top box in your example, it would be vbox.getChildAt(0).height.
However, I do believe that on dividerRelease the child would not have been
resized yet (i think it will be resized during vbox.updateDisplayList()).
You could try looking for other events to listen to on either the box or the
children, but my guess is that the way you're doing it is the best you are
going to find.

On 12/27/06, Matt Maher <[EMAIL PROTECTED]> wrote:

  I'm trying to remember the height at which someone sets a vertically
divided section. I am using a VDividedBox and have set a listener to
the dividerRelease event.

When I get in there I can trace out the height of the top component
within the VDividedBox but it gives me the "pre-resized" value. I am
assuming that the drop event happens before the redraw. Okay, not a
shock. But what is confusing is that the VDividedBox object itself
doesn't seem to have any getters nor properties for the size of the two
boxes it is in control of. Am I missing something?

I believe I can use the "delta" property on the event that is thrown
and add that to the "pre-resized" value of the top box. I'm thinking
that is a workaround, but am I missing something?

Thanks

Reply via email to