PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/ext-4.1.0_b3/docs/source/Handle.html

https://bitbucket.org/srogerf/javascript
HTML | 49 lines | 44 code | 5 blank | 0 comment | 0 complexity | dbc47308fed9ffbb146c389518922434 MD5 | raw file
 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-resizer-Handle'>/**
19</span> * Provides a handle for 9-point resizing of Elements or Components.
20 */
21Ext.define('Ext.resizer.Handle', {
22    extend: 'Ext.Component',
23    handleCls: '',
24    baseHandleCls: Ext.baseCSSPrefix + 'resizable-handle',
25    // Ext.resizer.Resizer.prototype.possiblePositions define the regions
26    // which will be passed in as a region configuration.
27    region: '',
28
29    beforeRender: function() {
30        var me = this;
31
32        me.callParent();
33
34        me.addCls(
35            me.baseHandleCls,
36            me.baseHandleCls + '-' + me.region,
37            me.handleCls
38        );
39    },
40
41    onRender: function() {
42        this.callParent(arguments);
43
44        this.el.unselectable();
45    }
46});
47</pre>
48</body>
49</html>