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; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
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
23 * <p>The AutoLayout is the default layout manager delegated by {@link Ext.Component} to
24 * render any child Elements when no <tt>{@link Ext.container.Container#layout layout}</tt> is configured.</p>
27 Ext.define('Ext.layout.component.Auto', {
29 /* Begin Definitions */
31 alias: 'layout.autocomponent',
33 extend: 'Ext.layout.component.Component',
37 type: 'autocomponent',
39 onLayout : function(width, height) {
40 this.setTargetSize(width, height);