Skip to content

Commit

Permalink
bug fix 4285
Browse files Browse the repository at this point in the history
Signed-off-by: Sampath Liyanage <plbsam@gmail.com>
  • Loading branch information
sampathLiyanage committed Feb 14, 2014
1 parent 515f4e8 commit 58279d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
13 changes: 13 additions & 0 deletions setup/scripts.js
Expand Up @@ -34,6 +34,19 @@ $(function () {
}
});

//set document width
$(document).ready(function(){
width = 0;
$('ul.tabs li').each(function(){
tabWidth = $(this).width() + 10;
width += tabWidth;
});
contentWidth = width;
width += 250;
$('body').css('min-width', width);
$('.tabs_contents').css('min-width', contentWidth);
});

//
// END: Messages
// ------------------------------------------------------------------
Expand Down
12 changes: 7 additions & 5 deletions setup/styles.css
@@ -1,6 +1,8 @@
/* global styles */

body {
margin-right: auto;
min-width: 960px;
padding-bottom: 1em;
color: #444;
font: .8em sans-serif;
Expand Down Expand Up @@ -79,6 +81,7 @@ h1 {

#page {
margin-left: 220px;
margin-right: 25px;
}

#footer {
Expand Down Expand Up @@ -205,8 +208,8 @@ div.notice[id^=version_check] h4 {
/* form tabs */

ul.tabs {
margin: 1.1em .2em 0;
padding: 0 0 .3em 0;
margin: 1.1em 2px 0;
padding: 0 0 3px 0;
list-style: none;
font-weight: bold;
}
Expand All @@ -218,7 +221,7 @@ ul.tabs li {

ul.tabs li a {
display: block;
margin: .1em .2em 0;
margin: 1px .2em 0;
white-space: nowrap;
text-decoration: none;
border: 1px solid #D5D5D5;
Expand Down Expand Up @@ -250,8 +253,7 @@ ul.tabs li.active a {
}

.tabs_contents {
margin-top: 1em;
float: left;
margin-top: 13px;
}

.tabs_contents fieldset {
Expand Down

0 comments on commit 58279d8

Please sign in to comment.