summaryrefslogtreecommitdiff
path: root/skins/default/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/default/functions.js')
-rw-r--r--skins/default/functions.js19
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');