From f4968311b234d1894a1b6dc6a95e2af004c73dc4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 11 Aug 2010 14:58:08 +0800 Subject: [PATCH] Roo/form/ComboBox.js --- Roo/form/ComboBox.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Roo/form/ComboBox.js b/Roo/form/ComboBox.js index 1ec1525159..061fd26301 100644 --- a/Roo/form/ComboBox.js +++ b/Roo/form/ComboBox.js @@ -520,13 +520,11 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, { var tw = this.trigger.getWidth(); tw += this.addicon ? this.addicon.getWidth() : 0; tw += this.editicon ? this.editicon.getWidth() : 0; - this.el.setWidth( - this.adjustWidth('input', - w - tw - ) + var x = w - tw; + this.el.setWidth( this.adjustWidth('input', x)) ); - this.trigger.setX(w); + this.trigger.setX(x); } -- 2.39.2