From 361ce60948bfc0eb75a4c144f9e1e76c3cdd7f35 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Sun, 06 Feb 2011 17:16:23 -0500 Subject: [PATCH] Make iframe headers fixed; don't jump to top when switching tabs --- skins/default/common.css | 10 +++++++++- skins/default/functions.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/skins/default/common.css b/skins/default/common.css index 8d9777a..3af18d1 100644 --- a/skins/default/common.css +++ b/skins/default/common.css @@ -9,7 +9,7 @@ body.iframe { - margin: 0px; + margin: 20px 0 0 0; background-color: #FFF; } @@ -274,6 +274,14 @@ float: right; } +body.iframe .boxtitle +{ + position: fixed; + top: 0; + left: 0; + width: 100%; +} + .boxcontent { padding: 15px 10px 10px 10px; diff --git a/skins/default/functions.js b/skins/default/functions.js index d26097f..3497826 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -46,7 +46,7 @@ // create a tab a = $('<a>').text(legend.text()).attr('href', '#'); tab = $('<span>').attr({'id': 'tab'+idx, 'class': 'tablink'}) - .click(function() { return rcube_show_tab(id, idx); }) + .click(function() { rcube_show_tab(id, idx); return false }) // remove legend legend.remove(); -- Gitblit v1.9.1