WEB-64
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:
parent
3932f884d9
commit
9e40e55b8c
@ -156,7 +156,6 @@ img {
|
||||
}
|
||||
|
||||
#leftside-navigation {
|
||||
height:400px;
|
||||
overflow-y:scroll;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
}();
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user