X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/FitLayout.html?ds=sidebyside diff --git a/docs/source/FitLayout.html b/docs/source/FitLayout.html index 361a2eec..cced26c0 100644 --- a/docs/source/FitLayout.html +++ b/docs/source/FitLayout.html @@ -1,17 +1,12 @@ - -
-/*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -/** + + + ++ \ No newline at end of fileThe source code + + + + +/** * @class Ext.layout.FitLayout * @extends Ext.layout.ContainerLayout *- +Ext.Container.LAYOUTS['fit'] = Ext.layout.FitLayout;This is a base class for layouts that contain a single item that automatically expands to fill the layout's @@ -40,8 +35,7 @@ Ext.layout.FitLayout = Ext.extend(Ext.layout.ContainerLayout, { onLayout : function(ct, target){ Ext.layout.FitLayout.superclass.onLayout.call(this, ct, target); if(!this.container.collapsed){ - var sz = (Ext.isIE6 && Ext.isStrict && target.dom == document.body) ? target.getViewSize() : target.getStyleSize(); - this.setItemSize(this.activeItem || ct.items.itemAt(0), sz); + this.setItemSize(this.activeItem || ct.items.itemAt(0), target.getViewSize(true)); } }, @@ -52,6 +46,6 @@ Ext.layout.FitLayout = Ext.extend(Ext.layout.ContainerLayout, { } } }); -Ext.Container.LAYOUTS['fit'] = Ext.layout.FitLayout;