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.
This commit is contained in:
diver-sity 2014-09-13 16:29:20 +10:00
parent 3932f884d9
commit 9e40e55b8c
2 changed files with 11 additions and 4 deletions

View File

@ -156,7 +156,6 @@ img {
}
#leftside-navigation {
height:400px;
overflow-y:scroll;
overflow-x:hidden;
}

View File

@ -8,6 +8,10 @@ var app = function() {
// menu is handled by angular
//menu();
togglePanel();
sideBarLeftInit();
window.onresize = function(){
sideBarLeftInit();
}
closePanel();
};
@ -203,6 +207,9 @@ var app = function() {
$('.slider-span').slider()
};
var sideBarLeftInit = function(){
$("#leftside-navigation").css("height", (window.innerHeight-80)+"px");
};
//return functions
return {
@ -211,9 +218,10 @@ var app = function() {
map: map,
sliders: sliders,
weather: weather,
morrisPie: morrisPie
morrisPie: morrisPie,
sideBarLeftInit:sideBarLeftInit
};
}();