Roo/bootstrap/TriggerField.js
authorEdward <edward@roojs.com>
Mon, 28 Apr 2014 10:17:41 +0000 (18:17 +0800)
committerEdward <edward@roojs.com>
Mon, 28 Apr 2014 10:17:41 +0000 (18:17 +0800)
Roo/bootstrap/TriggerField.js

index e0e2df0..8bd56d6 100644 (file)
@@ -194,12 +194,12 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
     
     // private
     onResize : function(w, h){
-//        Roo.bootstrap.TriggerField.superclass.onResize.apply(this, arguments);
-//        if(typeof w == 'number'){
-//            var x = w - this.trigger.getWidth();
-//            this.inputEl().setWidth(this.adjustWidth('input', x));
-//            this.trigger.setStyle('left', x+'px');
-//        }
+        Roo.bootstrap.TriggerField.superclass.onResize.apply(this, arguments);
+        if(typeof w == 'number'){
+            var x = w - this.trigger.getWidth();
+            this.inputEl().setWidth(this.adjustWidth('input', x));
+            this.trigger.setStyle('left', x+'px');
+        }
     },
 
     // private