X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/widgets/tree/TreeEditor.js diff --git a/src/widgets/tree/TreeEditor.js b/src/widgets/tree/TreeEditor.js index 4de8802b..378acf61 100644 --- a/src/widgets/tree/TreeEditor.js +++ b/src/widgets/tree/TreeEditor.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -18,6 +18,7 @@ Ext.tree.TreeEditor = function(tree, fc, config){ fc = fc || {}; var field = fc.events ? fc : new Ext.form.TextField(fc); + Ext.tree.TreeEditor.superclass.constructor.call(this, field, config); this.tree = tree; @@ -70,16 +71,18 @@ Ext.extend(Ext.tree.TreeEditor, Ext.Editor, { initEditor : function(tree){ tree.on({ - scope: this, + scope : this, beforeclick: this.beforeNodeClick, - dblclick: this.onNodeDblClick + dblclick : this.onNodeDblClick }); + this.on({ - scope: this, - complete: this.updateNode, + scope : this, + complete : this.updateNode, beforestartedit: this.fitToTree, - specialkey: this.onSpecialKey + specialkey : this.onSpecialKey }); + this.on('startedit', this.bindScroll, this, {delay:10}); },