fixed the last debug panel issues

This commit is contained in:
Erik Amaru Ortiz
2011-02-24 21:55:00 +00:00
parent 8159d61c1e
commit 230c2771e1
3 changed files with 32 additions and 25 deletions

View File

@@ -340,13 +340,17 @@ Ext.onReady(function() {
viewport.doLayout();
// routine to hide the debug panel if it is open
if (parent.PANEL_EAST_OPEN) {
parent.PANEL_EAST_OPEN = false;
var debugPanel = parent.Ext.getCmp('debugPanel');
debugPanel.hide();
debugPanel.ownerCt.doLayout();
}
//routine to hide the debug panel if it is open
if( typeof parent != 'undefined' ){
if( typeof parent.parent != 'undefined' ){
if( parent.parent.PANEL_EAST_OPEN ){
parent.parent.PANEL_EAST_OPEN = false;
var debugPanel = parent.parent.Ext.getCmp('debugPanel');
debugPanel.hide();
debugPanel.ownerCt.doLayout();
}
}
}
});