Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / layout / component / Auto.js
1 /**
2  * @class Ext.layout.component.Auto
3  * @extends Ext.layout.component.Component
4  * @private
5  *
6  * <p>The AutoLayout is the default layout manager delegated by {@link Ext.Component} to
7  * render any child Elements when no <tt>{@link Ext.Component#layout layout}</tt> is configured.</p>
8  */
9
10 Ext.define('Ext.layout.component.Auto', {
11
12     /* Begin Definitions */
13
14     alias: 'layout.autocomponent',
15
16     extend: 'Ext.layout.component.Component',
17
18     /* End Definitions */
19
20     type: 'autocomponent',
21
22     onLayout : function(width, height) {
23         this.setTargetSize(width, height);
24     }
25 });