Skip to content

Commit

Permalink
WEB-64
Browse files Browse the repository at this point in the history
The left-side navigation bar now appear to be of the same height as the browser window's height. The bar's height also changes when the window is resized.
Testing is carried out in two recent versions of Firefox and Chrome.
  • Loading branch information
act-ive committed Sep 13, 2014
1 parent 3932f88 commit 5e44298
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/webapp/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ img {
}

#leftside-navigation {
height:400px;
overflow-y:scroll;
overflow-x:hidden;
}
Expand Down
14 changes: 11 additions & 3 deletions src/main/webapp/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ var app = function() {
// menu is handled by angular
//menu();
togglePanel();
sideBarLeftInit();
window.onresize = function(){
sideBarLeftInit();
}
closePanel();
};

Expand Down Expand Up @@ -203,6 +207,9 @@ var app = function() {
$('.slider-span').slider()
};

var sideBarLeftInit = function(){
$("#leftside-navigation").css("height", (window.innerHeight-80)+"px");
};

//return functions
return {
Expand All @@ -211,9 +218,10 @@ var app = function() {
map: map,
sliders: sliders,
weather: weather,
morrisPie: morrisPie

morrisPie: morrisPie,
sideBarLeftInit:sideBarLeftInit
};


}();


0 comments on commit 5e44298

Please sign in to comment.