X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/source/TriggerField.html?ds=sidebyside diff --git a/docs/source/TriggerField.html b/docs/source/TriggerField.html index 224ba628..f720622f 100644 --- a/docs/source/TriggerField.html +++ b/docs/source/TriggerField.html @@ -1,12 +1,18 @@ - -
- -/** + + + ++ \ No newline at end of fileThe source code + + + + +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** * @class Ext.form.TriggerField * @extends Ext.form.TextField * Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). @@ -85,8 +91,6 @@ Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { actionMode: 'wrap', - removeMode: 'container', - defaultTriggerWidth: 17, // private @@ -101,7 +105,7 @@ Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { getTriggerWidth: function(){ var tw = this.trigger.getWidth(); - if(!this.hideTrigger && tw === 0){ + if(!this.hideTrigger && !this.readOnly && tw === 0){ tw = this.defaultTriggerWidth; } return tw; @@ -127,7 +131,10 @@ Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth()); } this.resizeEl = this.positionEl = this.wrap; - this.updateEditState(); + }, + + getWidth: function() { + return(this.el.getWidth() + this.trigger.getWidth()); }, updateEditState: function(){ @@ -190,6 +197,7 @@ Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { afterRender : function(){ Ext.form.TriggerField.superclass.afterRender.call(this); + this.updateEditState(); }, // private @@ -391,6 +399,6 @@ Ext.form.TwinTriggerField = Ext.extend(Ext.form.TriggerField, { onTrigger2Click : Ext.emptyFn }); Ext.reg('trigger', Ext.form.TriggerField); -- +