From a3644638aaf0418598196a870204e0b632a4c8ad Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Fri, 17 Apr 2015 06:28:40 -0400 Subject: [PATCH] Allow preference sections to define CSS class names --- skins/classic/functions.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/skins/classic/functions.js b/skins/classic/functions.js index 2bf1538..5a5ad39 100644 --- a/skins/classic/functions.js +++ b/skins/classic/functions.js @@ -547,12 +547,13 @@ resize_compose_body: function() { var div = $('#compose-div .boxlistcontent'), - w = div.width() - 2, h = div.height(), + w = div.width() - 6, + h = div.height() - 2, x = bw.ie || bw.opera ? 4 : 0; - $('#compose-body_ifr').width(w+3).height(h-2 - $('div.mce-toolbar').height()); + $('#compose-body_ifr').width(w + 6).height(h - 1 - $('div.mce-toolbar').height()); $('#compose-body').width(w-x).height(h); - $('#googie_edit_layer').height(h); + $('#googie_edit_layer').width(w).height(h); }, resize_compose_body_ev: function() @@ -1026,6 +1027,12 @@ .addEventListener('afterimport-messages', function(){ rcmail_ui.show_popup('uploadform', false); }); } + // fix message list header on window resize (#1490213) + if (bw.ie && rcmail.message_list) + $(window).resize(function() { + setTimeout(function() { rcmail.message_list.resize(); }, 10); + }); + if (rcmail.env.action == 'compose') rcmail_ui.init_compose_form(); else if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') -- Gitblit v1.9.1