Skip to content

Commit 9e40e55

Browse files
committed
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.
1 parent 3932f88 commit 9e40e55

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/main/webapp/css/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ img {
156156
}
157157

158158
#leftside-navigation {
159-
height:400px;
160159
overflow-y:scroll;
161160
overflow-x:hidden;
162161
}

src/main/webapp/js/application.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ var app = function() {
88
// menu is handled by angular
99
//menu();
1010
togglePanel();
11+
sideBarLeftInit();
12+
window.onresize = function(){
13+
sideBarLeftInit();
14+
}
1115
closePanel();
1216
};
1317

@@ -203,6 +207,9 @@ var app = function() {
203207
$('.slider-span').slider()
204208
};
205209

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

207214
//return functions
208215
return {
@@ -211,9 +218,10 @@ var app = function() {
211218
map: map,
212219
sliders: sliders,
213220
weather: weather,
214-
morrisPie: morrisPie
215-
221+
morrisPie: morrisPie,
222+
sideBarLeftInit:sideBarLeftInit
216223
};
224+
225+
217226
}();
218227

219-

0 commit comments

Comments
 (0)