diff options
author | alecpl <alec@alec.pl> | 2010-06-18 21:13:07 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-06-18 21:13:07 +0000 |
commit | 129997f60eb984ef3af64e0571186ec83ba0fd9c (patch) | |
tree | d009545bc69eba53f0b96b8eba4cac1387bda47e | |
parent | 61248fd1cec9ffaafcb310f581c320622239b296 (diff) |
- Added hack for Opera browser in preview pane switcher
-rw-r--r-- | skins/default/functions.js | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js index c222ae4ab..b1ee9b088 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -336,23 +336,34 @@ switch_preview_pane: function(elem) if (mailviewsplit.layer) { mailviewsplit.resize(); mailviewsplit.layer.elm.style.display = ''; - } else + } + else mailviewsplit.init(); + + if (bw.opera) { + $('#messagelistcontainer').css({height: ''}); + } prev_frm.show(); + if (uid = rcmail.message_list.get_single_selection()) rcmail.show_message(uid, false, true); rcmail.http_post('save-pref', '_name=preview_pane&_value=1'); - } else { + } + else { prev_frm.hide(); if (bw.ie6 || bw.ie7) { var fr = document.getElementById('mailcontframe'); fr.style.bottom = 0; - fr.style.height = parseInt(fr.parentNode.offsetHeight)+'px'; + fr.style.height = parseInt(fr.parentNode.offsetHeight)+'px'; } - else + else { $('#mailcontframe').css({height: 'auto', bottom: 0}); + if (bw.opera) + $('#messagelistcontainer').css({height: 'auto'}); + } if (mailviewsplit.layer) mailviewsplit.layer.elm.style.display = 'none'; + rcmail.env.contentframe = null; rcmail.show_contentframe(false); rcmail.http_post('save-pref', '_name=preview_pane&_value=0'); |