forked from loafle/openapi-generator-original
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:
commit
0a47fc23a3
@ -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());
|
||||||
|
});
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user