Fix to scroll left side of sample docs

This commit is contained in:
Jason Sykes 2013-09-30 17:50:36 -04:00
parent 609cef0b65
commit 329f2817c2

View File

@ -60,4 +60,16 @@ function goToAnchor() {
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());
}).trigger('hashchange');
});