Merge pull request #96 from df-jsykes/master

Fix for sidebar never scrolling in static docs, preventing the user from seeing all operations.
This commit is contained in:
Tony Tam 2013-09-30 15:04:06 -07:00
commit 0a47fc23a3

View File

@ -60,4 +60,16 @@ function goToAnchor() {
window.scrollTo(0,$('a[name='+anchor+']').offset().top - 80); window.scrollTo(0,$('a[name='+anchor+']').offset().top - 80);
} }
} }
function resize()
{
$(".sidebar").css('height', $(window).height() -60);
$("#content-window").css('height', $(window).height() -60);
}
$(function(){
window.onresize = resize;
resize();
$(window).bind('hashchange', function() {
choose(window.location.href.toString());
});
});