Make iframe headers fixed; don't jump to top when switching tabs
| | |
| | | |
| | | body.iframe |
| | | { |
| | | margin: 0px; |
| | | margin: 20px 0 0 0; |
| | | background-color: #FFF; |
| | | } |
| | | |
| | |
| | | float: right; |
| | | } |
| | | |
| | | body.iframe .boxtitle |
| | | { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | } |
| | | |
| | | .boxcontent |
| | | { |
| | | padding: 15px 10px 10px 10px; |
| | |
| | | // 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(); |