- // Height calcs\r
- // Try the style first, then clientHeight, then offsetHeight\r
- if (h = me.getStyle('height').match(pxMatch)){\r
- if ((h = parseInt(h[1], 10)) && isBB){\r
- // Style includes the padding and border if isBB\r
- h -= (tbBorder + tbPadding);\r
- }\r
- if (!contentBox){\r
- h += tbPadding;\r
+ <div id="method-Ext.Element-getStyleSize"></div>/**\r
+ * <p>Returns the dimensions of the element available to lay content out in.<p>\r
+ *\r
+ * getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth.\r
+ * To obtain the size excluding scrollbars, use getViewSize\r
+ *\r
+ * Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.\r
+ */\r
+\r
+ getStyleSize : function(){\r
+ var me = this,\r
+ w, h,\r
+ doc = document,\r
+ d = this.dom,\r
+ isDoc = (d == doc || d == doc.body),\r
+ s = d.style;\r
+\r
+ // If the body, use Ext.lib.Dom\r
+ if (isDoc) {\r
+ var extdom = Ext.lib.Dom;\r
+ return {\r
+ width : extdom.getViewWidth(),\r
+ height : extdom.getViewHeight()\r