Roo/form/ComboBox.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 11 Aug 2010 06:58:08 +0000 (14:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 11 Aug 2010 06:58:08 +0000 (14:58 +0800)
Roo/form/ComboBox.js

index 1ec1525..061fd26 100644 (file)
@@ -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);
         }