-<html>
-<head>
- <title>The source code</title>
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
-</head>
-<body onload="prettyPrint();">
- <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-<div id="cls-Ext.Viewport"></div>/**\r
+<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
+</head>\r
+<body onload="prettyPrint();">\r
+ <pre class="prettyprint lang-js"><div id="cls-Ext.Viewport"></div>/**\r
* @class Ext.Viewport\r
* @extends Ext.Container\r
* <p>A specialized container representing the viewable application area (the browser viewport).</p>\r
collapsible: true,\r
title: 'Navigation',\r
width: 200\r
- // the west region might typically utilize a {@link Ext.tree.TreePanel TreePanel} or a Panel with {@link Ext.layout.AccordionLayout Accordion layout} \r
+ // the west region might typically utilize a {@link Ext.tree.TreePanel TreePanel} or a Panel with {@link Ext.layout.AccordionLayout Accordion layout}\r
}, {\r
region: 'south',\r
title: 'Title for Panel',\r
* @xtype viewport\r
*/\r
Ext.Viewport = Ext.extend(Ext.Container, {\r
- /*\r
- * Privatize config options which, if used, would interfere with the\r
- * correct operation of the Viewport as the sole manager of the\r
- * layout of the document body.\r
- */\r
+ /*\r
+ * Privatize config options which, if used, would interfere with the\r
+ * correct operation of the Viewport as the sole manager of the\r
+ * layout of the document body.\r
+ */\r
<div id="cfg-Ext.Viewport-applyTo"></div>/**\r
* @cfg {Mixed} applyTo @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-allowDomMove"></div>/**\r
* @cfg {Boolean} allowDomMove @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-hideParent"></div>/**\r
* @cfg {Boolean} hideParent @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-renderTo"></div>/**\r
* @cfg {Mixed} renderTo @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-hideParent"></div>/**\r
* @cfg {Boolean} hideParent @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-height"></div>/**\r
* @cfg {Number} height @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-width"></div>/**\r
* @cfg {Number} width @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-autoHeight"></div>/**\r
* @cfg {Boolean} autoHeight @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-autoWidth"></div>/**\r
* @cfg {Boolean} autoWidth @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-deferHeight"></div>/**\r
* @cfg {Boolean} deferHeight @hide\r
- */\r
+ */\r
<div id="cfg-Ext.Viewport-monitorResize"></div>/**\r
* @cfg {Boolean} monitorResize @hide\r
- */\r
+ */\r
+\r
initComponent : function() {\r
Ext.Viewport.superclass.initComponent.call(this);\r
document.getElementsByTagName('html')[0].className += ' x-viewport';\r
},\r
\r
fireResize : function(w, h){\r
- this.fireEvent('resize', this, w, h, w, h);\r
+ this.onResize(w, h, w, h);\r
}\r
});\r
-Ext.reg('viewport', Ext.Viewport);</pre>
-</body>
+Ext.reg('viewport', Ext.Viewport);\r
+</pre> \r
+</body>\r
</html>
\ No newline at end of file