From 8ce602461821bfc4fb1c5b2d40fb7468d9c299c7 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 31 May 2012 13:30:23 +0200 Subject: Fix window.resize handler on IE8 and Opera (#1488453) --- skins/larry/mail.css | 5 +++-- skins/larry/ui.js | 8 ++------ 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'skins') diff --git a/skins/larry/mail.css b/skins/larry/mail.css index c0ceab076..762f59c8d 100644 --- a/skins/larry/mail.css +++ b/skins/larry/mail.css @@ -803,7 +803,8 @@ div.hide-headers { #messagecontent .leftcol, #messagepreview .leftcol { - margin-right: 250px; + margin-right: 252px; + overflow-x: auto; } #messagecontent .rightcol, @@ -849,7 +850,7 @@ div.hide-headers { div.message-part, div.message-htmlpart { - padding: 10px 2px; + padding: 0 2px 10px 2px; border-top: 2px solid #f0f0f0; } diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 2e0f0dbc0..630008f7e 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -207,12 +207,8 @@ function rcube_mail_ui() }) .contents().mouseup(body_mouseup); - $(window).resize(function(e) { - // check target due to bugs in jquery - // http://bugs.jqueryui.com/ticket/7514 - // http://bugs.jquery.com/ticket/9841 - if (e.target == window) resize(); - }); + // don't use $(window).resize() due to some unwanted side-effects + window.onresize = resize; } /** -- cgit v1.2.3