X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/FitLayout.html 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 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.layout.FitLayout * @extends Ext.layout.ContainerLayout *

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;

- +Ext.Container.LAYOUTS['fit'] = Ext.layout.FitLayout;
+ \ No newline at end of file