Module: deluge Branch: master Commit: 79e62e6069b11358c6d096d7302e25f28e2a4781
Author: Damien Churchill <[email protected]> Date: Mon Mar 29 23:35:53 2010 +0100 add a fix for triggerfields in the preferences page --- deluge/ui/web/js/ext-extensions/TriggerFieldFix.js | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) 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 0000000..0af3252 --- /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); + } +}); -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
