Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / Draw2.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="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../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-Draw'>/**
19 </span> * @class Ext.layout.component.Draw
20  * @extends Ext.layout.component.Component
21  * @private
22  *
23  */
24
25 Ext.define('Ext.layout.component.Draw', {
26
27     /* Begin Definitions */
28
29     alias: 'layout.draw',
30
31     extend: 'Ext.layout.component.Auto',
32
33     /* End Definitions */
34
35     type: 'draw',
36
37     onLayout : function(width, height) {
38         this.owner.surface.setSize(width, height);
39         this.callParent(arguments);
40     }
41 });</pre>
42 </body>
43 </html>