diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-07 08:39:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-07 08:39:12 +0000 |
| commit | f8d88136b727520db85925ce53b24aa5819ffb1e (patch) | |
| tree | e60062ea6212b2483b6bba4d92565a6b39426485 | |
| parent | 1eb3284e87ae37136949e960335846974969e1cd (diff) | |
- Fixed filter popup width (for non-english localizations)
git-svn-id: https://svn.roundcube.net/trunk@5972 208e9e7b-5314-0410-a742-e7e81cd9613c
| -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 (!?) } |
