add a fix for triggerfields in the preferences page

This commit is contained in:
Damien Churchill 2010-03-29 23:35:53 +01:00
parent 7b84f54974
commit 79e62e6069
1 changed files with 10 additions and 0 deletions

View File

@ -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);
}
});