allow sidebar to grow if the browser window becomes larger

This commit is contained in:
Stefan Breunig 2013-02-16 01:21:44 +01:00
parent e9fd2e1a2e
commit 7d720b2655

View File

@ -275,7 +275,7 @@ function boot() {
// sidebar is now at final height. Adjust scrollwrapper so scrolling // sidebar is now at final height. Adjust scrollwrapper so scrolling
// is possible for small screens and it doesnt block the area below // is possible for small screens and it doesnt block the area below
// it. // it.
$('#scrollwrapper').css('max-height', $('#sidebar').height() + 'px'); $('#scrollwrapper').css('max-height', $('#sidebar').get(0).scrollHeight + 'px');
// workaround for #129. Not sure why this is required. // workaround for #129. Not sure why this is required.
setTimeout('window.map.invalidateSize(false);', 500); setTimeout('window.map.invalidateSize(false);', 500);