X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/resizer/Handle.js diff --git a/src/resizer/Handle.js b/src/resizer/Handle.js new file mode 100644 index 00000000..0a20ea33 --- /dev/null +++ b/src/resizer/Handle.js @@ -0,0 +1,24 @@ +/** + * @class Ext.resizer.Handle + * @extends Ext.Component + * + * Provides a handle for 9-point resizing of Elements or Components. + */ +Ext.define('Ext.resizer.Handle', { + extend: 'Ext.Component', + handleCls: '', + baseHandleCls: Ext.baseCSSPrefix + 'resizable-handle', + // Ext.resizer.Resizer.prototype.possiblePositions define the regions + // which will be passed in as a region configuration. + region: '', + + onRender: function() { + this.addCls( + this.baseHandleCls, + this.baseHandleCls + '-' + this.region, + this.handleCls + ); + this.callParent(arguments); + this.el.unselectable(); + } +});