I'm not removing the component either.
Could it be an issue that the parents in my case is a
qx.ui.pageview.tabview.Page and the  component i'm moving is a
qx.ui.layout.CanvasLayout ?
The error seems to suggest that it might be related to layout effects. 

-----Original Message-----
From: Ralf Nieuwenhuijsen [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 6 juni 2008 14:25
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Moving a component to another tab of
apagecontrol

I believe just adding a component to whereever you want it to be,
removes it from whereever it was.
But i could be mistaken ;-)

This works for me, though:

=======example code===============

var superParent = new qx.ui.layout.VerticalBoxLayout();
superParent.set({ top: 0, left: 0, bottom: 0, right: 0 });
superParent.addToDocument();

var parentX = new qx.ui.layout.Canvas();
parentX.set({heigth: "50%", width: "100%"});

var parentY = new qx.ui.layout.Canvas();
parentY.set({heigth: "50%", width: "100%"});

superParent.add( parentX, parentY );

var button = new qx.ui.form.Button('Click me to move me down');
button.addEventListener('execute',function(){
  parentY.add(button);
}, this);

parentX.add(button);
=====================================

When you click the button, the button is removed from parentX and added
to parentY.
Note, that i do not _remove_ the button. I just add it to parentY.

If you remove the button, i think it gets destroyed!
Which would explain the error message you have received.

Greetings,
Ralf Nieuwenhuijsen

2008/6/6 Bart van der Werf <[EMAIL PROTECTED]>:
> I'm, trying to move some controls from one tab in a pagecontrol to 
> another but i get a "this._layoutChanges is null".
> What is the way to move components from one parent component to
another ?
>
> greets, Bart
> ----------------------------------------------------------------------
> --- Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for just about anything 
> Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to