<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
// 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
- var sz = (Ext.isIE6 && Ext.isStrict && target.dom == document.body) ? target.getViewSize() : target.getStyleSize();\r
- this.setItemSize(this.activeItem || ct.items.itemAt(0), sz);\r
+ if(!ct.collapsed){\r
+ this.setItemSize(this.activeItem || ct.items.itemAt(0), this.getLayoutTargetSize());\r
}\r
},\r
\r