Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / src / widgets / layout / AutoLayout.js
1 /*!
2  * Ext JS Library 3.1.1
3  * Copyright(c) 2006-2010 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**
8  * @class Ext.layout.AutoLayout
9  * <p>The AutoLayout is the default layout manager delegated by {@link Ext.Container} to
10  * render any child Components when no <tt>{@link Ext.Container#layout layout}</tt> is configured into
11  * a {@link Ext.Container Container}. ContainerLayout provides the basic foundation for all other layout
12  * classes in Ext. It simply renders all child Components into the Container, performing no sizing or
13  * positioning services. To utilize a layout that provides sizing and positioning of child Components,
14  * specify an appropriate <tt>{@link Ext.Container#layout layout}</tt>.</p>
15  */
16 Ext.layout.AutoLayout = Ext.extend(Ext.layout.ContainerLayout, {
17     runLayout: function(){
18         var ct = this.container;
19         ct.doLayout();
20         delete ct.layoutPending;
21     }
22 });
23
24 Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout;