From f8d88136b727520db85925ce53b24aa5819ffb1e Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 7 Mar 2012 08:39:12 +0000 Subject: - Fixed filter popup width (for non-english localizations) git-svn-id: https://svn.roundcube.net/trunk@5972 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/managesieve/Changelog | 2 ++ plugins/managesieve/managesieve.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins') 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 (!?) } -- cgit v1.2.3