Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / resizer / Handle.js
1 /**
2  * @class Ext.resizer.Handle
3  * @extends Ext.Component
4  *
5  * Provides a handle for 9-point resizing of Elements or Components.
6  */
7 Ext.define('Ext.resizer.Handle', {
8     extend: 'Ext.Component',
9     handleCls: '',
10     baseHandleCls: Ext.baseCSSPrefix + 'resizable-handle',
11     // Ext.resizer.Resizer.prototype.possiblePositions define the regions
12     // which will be passed in as a region configuration.
13     region: '',
14
15     onRender: function() {
16         this.addCls(
17             this.baseHandleCls,
18             this.baseHandleCls + '-' + this.region,
19             this.handleCls
20         );
21         this.callParent(arguments);
22         this.el.unselectable();
23     }
24 });