Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / src / widgets / Viewport.js
index 888dd60..1adca11 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.0.3
+ * Ext JS Library 3.1.0
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -29,7 +29,7 @@ new Ext.Viewport({
         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
@@ -64,44 +64,45 @@ new Ext.Viewport({
  * @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
     /**\r
      * @cfg {Mixed} applyTo @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} allowDomMove @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} hideParent @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Mixed} renderTo @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} hideParent @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Number} height @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Number} width @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} autoHeight @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} autoWidth @hide\r
-        */\r
+     */\r
     /**\r
      * @cfg {Boolean} deferHeight @hide\r
-        */\r
+     */\r
     /**\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
@@ -118,7 +119,7 @@ Ext.Viewport = Ext.extend(Ext.Container, {
     },\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);
\ No newline at end of file
+Ext.reg('viewport', Ext.Viewport);\r