diff --git a/deluge/ui/web/js/ext-extensions/TriggerFieldFix.js b/deluge/ui/web/js/ext-extensions/TriggerFieldFix.js new file mode 100644 index 000000000..0af325229 --- /dev/null +++ b/deluge/ui/web/js/ext-extensions/TriggerFieldFix.js @@ -0,0 +1,10 @@ +Ext.override(Ext.form.TriggerField, { + onResize: function(w, h) { + Ext.form.TriggerField.superclass.onResize.call(this, w, h); + var tw = this.getTriggerWidth(); + if (Ext.isNumber(w)) { + this.el.setWidth(w - tw); + } + this.wrap.setWidth(w); + } +});