View Full Version : HELP: Error when calling doLayout

2 Feb 2010, 8:39 PM
I made a border layout, a tree list in the west region, and if click a node of the tree, the center region should change to another view. I don't want to instance all the views like that shows in 'Layout Browser' sample, so I package the view in a class which extended the Ext.Panel, and I defined a function like this:

stateChange: function(toState) {
switch (toState) {
case 'someState':
this.add(new NewPanel({
margins: '5 0 5 0'
and this function will be called when a tree node is clicked. When I click the node, the old panel will be removed, but the new one can't be shown, and the FireBug caught 'me.dom is undefined' error. What should I do to fix this???

HELP! and thx:-/

3 Feb 2010, 3:08 AM
Have a look at this thread (http://www.extjs.com/forum/showthread.php?t=89603), you're perhaps hitting a bug in 3.1. You can check whether that's the case by changing your remove call to:

this.remove(oldPanel, false);
and see if the error persists.

3 Feb 2010, 3:23 AM
No error message any more, but the new panel can't be shown either, and the old one doesn't disappear.