diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/managesieve/Changelog | 2 | ||||
| -rw-r--r-- | plugins/managesieve/managesieve.js | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog index 855e80cea..052333a81 100644 --- a/plugins/managesieve/Changelog +++ b/plugins/managesieve/Changelog @@ -1,3 +1,5 @@ +- Fixed filter popup width (for non-english localizations) + * version 5.0 [2012-01-05] ----------------------------------------------------------- - Fixed setting test type to :is when none is specified diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js index a34a09f6c..be65c448e 100644 --- a/plugins/managesieve/managesieve.js +++ b/plugins/managesieve/managesieve.js @@ -778,9 +778,10 @@ rcube_webmail.prototype.managesieve_dialog_resize = function(o) { var dialog = this.env.managesieve_dialog, win = $(window), form = $(o); - width = form.width(), height = form.height(), + width = $('fieldset:first', o).width(), // fieldset width is more appropriate here + height = form.height(), w = win.width(), h = win.height(); dialog.dialog('option', { height: Math.min(h-20, height+120), width: Math.min(w-20, width+65) }) - .dialog('option', 'position', ['center', 'center']); // only works in a separate call (!?) + .dialog('option', 'position', ['center', 'center']); // works in a separate call only (!?) } |
