thomascube
2011-02-06 361ce60948bfc0eb75a4c144f9e1e76c3cdd7f35
Make iframe headers fixed; don't jump to top when switching tabs

2 files modified
12 ■■■■ changed files
skins/default/common.css 10 ●●●●● patch | view | raw | blame | history
skins/default/functions.js 2 ●●● patch | view | raw | blame | history
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;
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();