Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / AutoLayout.html
1 <html>\r
2 <head>\r
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
4   <title>The source code</title>\r
5     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
6     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
7 </head>\r
8 <body  onload="prettyPrint();">\r
9     <pre class="prettyprint lang-js"><div id="cls-Ext.layout.AutoLayout"></div>/**
10  * @class Ext.layout.AutoLayout
11  * <p>The AutoLayout is the default layout manager delegated by {@link Ext.Container} to
12  * render any child Components when no <tt>{@link Ext.Container#layout layout}</tt> is configured into
13  * a {@link Ext.Container Container}. ContainerLayout provides the basic foundation for all other layout
14  * classes in Ext. It simply renders all child Components into the Container, performing no sizing or
15  * positioning services. To utilize a layout that provides sizing and positioning of child Components,
16  * specify an appropriate <tt>{@link Ext.Container#layout layout}</tt>.</p>
17  */
18 Ext.layout.AutoLayout = Ext.extend(Ext.layout.ContainerLayout, {
19     runLayout: function(){
20         var ct = this.container;
21         ct.doLayout();
22         delete ct.layoutPending;
23     }
24 });
25
26 Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout;
27 </pre>    \r
28 </body>\r
29 </html>