forked from loafle/openapi-generator-original
Fix to scroll left side of sample docs
This commit is contained in:
parent
609cef0b65
commit
329f2817c2
@ -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');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user