- me = this,\r
- d = me.dom,\r
- extdom = Ext.lib.Dom,\r
- isDoc = (d == doc || d == doc.body),\r
- isBB, w, h, tbBorder = 0, lrBorder = 0,\r
- tbPadding = 0, lrPadding = 0;\r
- if (isDoc) {\r
- return { width: extdom.getViewWidth(), height: extdom.getViewHeight() };\r
- }\r
- isBB = me.isBorderBox();\r
- tbBorder = me.getBorderWidth('tb');\r
- lrBorder = me.getBorderWidth('lr');\r
- tbPadding = me.getPadding('tb');\r
- lrPadding = me.getPadding('lr');\r