DOH! I should have tried remove(). It was a long day and my brain just
wasn't where it should have been. I'll give that a test tomorrow.
Thanks,
Jim
On Wed, Oct 1, 2008 at 6:04 PM, Derrell Lipman <
[EMAIL PROTECTED]> wrote:
> On Wed, Oct 1, 2008 at 8:51 PM, Jim Hunter <[EMAIL PROTECTED]> wrote:
>
>> I am still learning the new layout engine and I have a, what I hope is, a
>> simple questions. I have created a page that has some horizontal regions
>> which are mostly all composite containers with various layouts. I have a few
>> at the top, one at the bottom and a large body section. All of the sections
>> have fixed heights except the body which is set to flex:1 and it fills the
>> available area nicely. If I change the MaxHeight of the bottom section, the
>> body adjusts to fill in. It always seems to be fine if I simply change the
>> height of the container at the bottom. But if I remove the bottom container
>> by setting it's LayoutParent to null, the body section does not fill in, it
>> stays the same size. Is this because removing the container does not trigger
>> the event to resize everything? Is there something I can call to forece the
>> updating of the containers?
>>
>
> Jim, looking at Widget.js and MChildrenHandling.js, I see that there's lots
> that happens when you remove() an element from its parent as opposed to
> simply setting the widget's layout parent to null. (In fact, the latter is
> but one of the things that remove() does.)
>
> If you know the child's parent widget, then try parent.remove(child);
> If you don't know the child's parent widget, then try
> child.getLayoutParent().remove(child);
> Let me know if that helps.
>
> Cheers,
>
> Derrell
>
> ps. You *do* have the framework source code open in one of your windows,
> right? :-)
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
Jim Hunter
DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE
STAIRS
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel