X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..ddde20c4d4ac6a8d53de079761155de813845b3c:/src/widgets/TabPanel.js?ds=sidebyside
diff --git a/src/widgets/TabPanel.js b/src/widgets/TabPanel.js
index d393f7fd..c9637702 100644
--- a/src/widgets/TabPanel.js
+++ b/src/widgets/TabPanel.js
@@ -1,6 +1,6 @@
/*!
- * Ext JS Library 3.1.1
- * Copyright(c) 2006-2010 Ext JS, LLC
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@ -559,7 +559,7 @@ new Ext.TabPanel({
*
cls : StringThe CSS class name
* iconCls : StringA CSS class to provide appearance for an icon.
*
- * @param {BoxComponent} item The {@link Ext.BoxComponent BoxComponent} for which to create a selector element in the tab strip.
+ * @param {Ext.BoxComponent} item The {@link Ext.BoxComponent BoxComponent} for which to create a selector element in the tab strip.
* @return {Object} An object hash containing the properties required to render the selector element.
*/
getTemplateArgs : function(item) {
@@ -588,7 +588,7 @@ new Ext.TabPanel({
if(this.rendered){
var items = this.items;
this.initTab(c, items.indexOf(c));
- if(items.getCount() == 1){
+ if(items.getCount() == 1 && !this.collapsed){
this.syncSize();
}
this.delegateUpdates();