/*!
- * Ext JS Library 3.1.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
// private\r
monitorResize:true,\r
\r
+ type: 'fit',\r
+\r
+ getLayoutTargetSize : function() {\r
+ var target = this.container.getLayoutTarget();\r
+ if (!target) {\r
+ return {};\r
+ }\r
+ // Style Sized (scrollbars not included)\r
+ return target.getStyleSize();\r
+ },\r
+\r
// private\r
onLayout : function(ct, target){\r
Ext.layout.FitLayout.superclass.onLayout.call(this, ct, target);\r
- if(!this.container.collapsed){\r
- this.setItemSize(this.activeItem || ct.items.itemAt(0), target.getViewSize(true));\r
+ if(!ct.collapsed){\r
+ this.setItemSize(this.activeItem || ct.items.itemAt(0), this.getLayoutTargetSize());\r
}\r
},\r
\r