X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/source/TriggerField.html?ds=sidebyside diff --git a/docs/source/TriggerField.html b/docs/source/TriggerField.html index 1cffc83f..f720622f 100644 --- a/docs/source/TriggerField.html +++ b/docs/source/TriggerField.html @@ -1,12 +1,18 @@ - - - - The source code - - - - -
/** + + + + The 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). @@ -99,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,6 +133,10 @@ Ext.form.TriggerField = Ext.extend(Ext.form.TextField, { this.resizeEl = this.positionEl = this.wrap; }, + getWidth: function() { + return(this.el.getWidth() + this.trigger.getWidth()); + }, + updateEditState: function(){ if(this.rendered){ if (this.readOnly) { @@ -389,6 +399,6 @@ Ext.form.TwinTriggerField = Ext.extend(Ext.form.TriggerField, { onTrigger2Click : Ext.emptyFn }); Ext.reg('trigger', Ext.form.TriggerField); -
- +
+ \ No newline at end of file