X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..b37ceabb82336ee82757cd32efe353cfab8ec267:/src/widgets/Panel.js diff --git a/src/widgets/Panel.js b/src/widgets/Panel.js index a5fc524c..5ed7e40e 100644 --- a/src/widgets/Panel.js +++ b/src/widgets/Panel.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.2.0 + * Ext JS Library 3.2.2 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license @@ -95,7 +95,7 @@ new Ext.Panel({ }, footerCfg: { tag: 'h2', - cls: 'x-panel-footer' // same as the Default class + cls: 'x-panel-footer', // same as the Default class html: 'footer html' }, footerCssClass: 'custom-footer', // additional css class, see {@link Ext.element#addClass addClass} @@ -1106,7 +1106,7 @@ new Ext.Panel({ getBottomToolbar : function(){ return this.bottomToolbar; }, - + /** * Returns the {@link Ext.Toolbar toolbar} from the footer ({@link #fbar}) section of the panel. * @return {Ext.Toolbar} The toolbar @@ -1387,7 +1387,7 @@ new Ext.Panel({ // Reset lastSize of all sub-components so they KNOW they are in a collapsed container this.cascade(function(c) { if (c.lastSize) { - c.lastSize = { width: 0, height: 0 }; + c.lastSize = { width: undefined, height: undefined }; } }); this.fireEvent('collapse', this); @@ -1732,12 +1732,12 @@ panel.load({ this.ft, this.header, this.footer, - this.toolbars, this.tbar, this.bbar, this.body, this.mc, - this.bwrap + this.bwrap, + this.dd ); if (this.fbar) { Ext.destroy( @@ -1745,12 +1745,8 @@ panel.load({ this.fbar.el ); } - }else{ - Ext.destroy( - this.topToolbar, - this.bottomToolbar - ); } + Ext.destroy(this.toolbars); }, // private