Hi.
I have this container:
var layout = new qx.ui.layout.Grid(4, 4);
layout.setColumnFlex(1, 1);
layout.setColumnFlex(4, 1);
layout.setColumnMinWidth(3, 20);
this.__fieldsContainer = new qx.ui.container.Composite(layout);
At some point, I add widgets to it. Later on, I try to remove them, in order to
add fresh controls to it, like this:
var children = container.getChildren();
while(children.length > 0)
children[children.length - 1].dispose();
The removal works without problems. However, later on, when executing the same
code I executed earlier on to fill the container, I get an odd error with a
stack trace comming from deep within qooxdoo itself:
Line 10748 of linked script http://localhost/folder/script/myapp.js
if(C==null||r==null){throw new Error("The layout properties 'row' and
'column' must be defined!");
Line 11046 of linked script http://localhost/folder/script/myapp.js
function(){if(this._invalidChildrenCache){this.__buildGrid();
Line 8171 of linked script http://localhost/folder/script/myapp.js
}return this.__sizeHint=this._computeSizeHint();
Line 4893 of linked script http://localhost/folder/script/myapp.js
var cj=ci.getSizeHint();
Line 4864 of linked script http://localhost/folder/script/myapp.js
var z=this._getContentHint();
Line 4659 of linked script http://localhost/folder/script/myapp.js
}bl=this.__sizeHint=this._computeSizeHint();
Line 5613 of linked script http://localhost/folder/script/myapp.js
var n=j.getSizeHint();
Line 5567 of linked script http://localhost/folder/script/myapp.js
function(){var r=this.__getSortedQueue();
Line 6241 of linked script http://localhost/folder/script/myapp.js
qx.ui.core.queue.Layout.flush();
... Line 2943 of linked script http://localhost/folder/script/myapp.js
e[i].handler.call(f,event);
Line 1294 of linked script http://localhost/folder/script/myapp.js
if(t.canDispatchEvent(q,event,w)){t.dispatchEvent(q,event,w);
Line 1538 of linked script http://localhost/folder/script/myapp.js
return this.getManager(k).dispatchEvent(k,p);
Line 6482 of linked script http://localhost/folder/script/myapp.js
}qx.event.Registration.fireEvent(this.__window,o,qx.event.type.Data,[ba||Y.type]);
Line 6512 of linked script http://localhost/folder/script/myapp.js
function(U){this.__fireEvent(U);
... Line 2745 of linked script http://localhost/folder/script/myapp.js
function(){if(!self.__callback){return a.apply(this,arguments);
... Line 1495 of linked script http://localhost/folder/script/myapp.js
function(event){return a.call(self||this,event||window.event);
The code which adds the new controls is executed in the same thread as the code
clearing the container, and finishes OK. The error happens later on, when the
rendering happens, it seems, so I cannot trace the error back into my code.
Unfortunately, this time I also don't have time to run the source build with
test data to see what happens.
Any ideas?
br,
flj
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel