Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / docs / source / Auto.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5   <title>The source code</title>
6   <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8   <style type="text/css">
9     .highlight { display: block; background-color: #ddd; }
10   </style>
11   <script type="text/javascript">
12     function highlight() {
13       document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
14     }
15   </script>
16 </head>
17 <body onload="prettyPrint(); highlight();">
18   <pre class="prettyprint lang-js"><span id='Ext-layout-component-Auto'>/**
19 </span> * @class Ext.layout.component.Auto
20  * @extends Ext.layout.component.Component
21  * @private
22  *
23  * &lt;p&gt;The AutoLayout is the default layout manager delegated by {@link Ext.Component} to
24  * render any child Elements when no &lt;tt&gt;{@link Ext.container.Container#layout layout}&lt;/tt&gt; is configured.&lt;/p&gt;
25  */
26
27 Ext.define('Ext.layout.component.Auto', {
28
29     /* Begin Definitions */
30
31     alias: 'layout.autocomponent',
32
33     extend: 'Ext.layout.component.Component',
34
35     /* End Definitions */
36
37     type: 'autocomponent',
38
39     onLayout : function(width, height) {
40         this.setTargetSize(width, height);
41     }
42 });</pre>
43 </body>
44 </html>