X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Viewport.html diff --git a/docs/source/Viewport.html b/docs/source/Viewport.html index 78b6e9e7..e8b50277 100644 --- a/docs/source/Viewport.html +++ b/docs/source/Viewport.html @@ -1,5 +1,22 @@ -
+ +/** - * @class Ext.container.Viewport + + + + +\ No newline at end of file +The source code + + + + + + +/** + * @class Ext.container.Viewport * @extends Ext.container.Container A specialized container representing the viewable application area (the browser viewport). @@ -67,11 +84,7 @@ An example showing a classic application border layout: }] }); - * @constructor - * Create a new Viewport - * @param {Object} config The config object * @markdown - * @xtype viewport */ Ext.define('Ext.container.Viewport', { extend: 'Ext.container.Container', @@ -84,37 +97,37 @@ Ext.define('Ext.container.Viewport', { * correct operation of the Viewport as the sole manager of the * layout of the document body. */ - /** + /** * @cfg {Mixed} applyTo @hide */ - /** + /** * @cfg {Boolean} allowDomMove @hide */ - /** + /** * @cfg {Boolean} hideParent @hide */ - /** + /** * @cfg {Mixed} renderTo @hide */ - /** + /** * @cfg {Boolean} hideParent @hide */ - /** + /** * @cfg {Number} height @hide */ - /** + /** * @cfg {Number} width @hide */ - /** + /** * @cfg {Boolean} autoHeight @hide */ - /** + /** * @cfg {Boolean} autoWidth @hide */ - /** + /** * @cfg {Boolean} deferHeight @hide */ - /** + /** * @cfg {Boolean} monitorResize @hide */ @@ -136,16 +149,17 @@ Ext.define('Ext.container.Viewport', { el.setSize = Ext.emptyFn; el.dom.scroll = 'no'; me.allowDomMove = false; - //this.autoWidth = true; - //this.autoHeight = true; Ext.EventManager.onWindowResize(me.fireResize, me); me.renderTo = me.el; + me.width = Ext.core.Element.getViewportWidth(); + me.height = Ext.core.Element.getViewportHeight(); }, fireResize : function(w, h){ // setSize is the single entry point to layouts this.setSize(w, h); - //this.fireEvent('resize', this, w, h, w, h); } }); -