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 5e44298f2b
2 changed files with 11 additions and 4 deletions

View File

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

View File

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