summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-06 22:16:23 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-06 22:16:23 +0000
commit33db0234078b56472d9fe77769d705a68f8c0699 (patch)
tree10530da6f0cc7438fe0744921963596a43969efa
parente42314c4827195686706ba0fe509b4819581670b (diff)
Make iframe headers fixed; don't jump to top when switching tabs
git-svn-id: https://svn.roundcube.net/trunk@4497 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/skins/default/common.css10
-rw-r--r--roundcubemail/skins/default/functions.js2
2 files changed, 10 insertions, 2 deletions
diff --git a/roundcubemail/skins/default/common.css b/roundcubemail/skins/default/common.css
index 8d9777abb..3af18d124 100644
--- a/roundcubemail/skins/default/common.css
+++ b/roundcubemail/skins/default/common.css
@@ -9,7 +9,7 @@ body
body.iframe
{
- margin: 0px;
+ margin: 20px 0 0 0;
background-color: #FFF;
}
@@ -274,6 +274,14 @@ img
float: right;
}
+body.iframe .boxtitle
+{
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+}
+
.boxcontent
{
padding: 15px 10px 10px 10px;
diff --git a/roundcubemail/skins/default/functions.js b/roundcubemail/skins/default/functions.js
index d26097f9c..349782627 100644
--- a/roundcubemail/skins/default/functions.js
+++ b/roundcubemail/skins/default/functions.js
@@ -46,7 +46,7 @@ function rcube_init_tabs(id, current)
// 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();