Skip to content

Commit 329f281

Browse files
author
Jason Sykes
committed
Fix to scroll left side of sample docs
1 parent 609cef0 commit 329f281

File tree

1 file changed

+12
-0
lines changed
  • samples/docs/swagger-static-docs/src/main/webapp/assets/js

1 file changed

+12
-0
lines changed

samples/docs/swagger-static-docs/src/main/webapp/assets/js/main.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,16 @@ function goToAnchor() {
6060
window.scrollTo(0,$('a[name='+anchor+']').offset().top - 80);
6161
}
6262
}
63+
function resize()
64+
{
65+
$(".sidebar").css('height', $(window).height() -60);
66+
$("#content-window").css('height', $(window).height() -60);
6367

68+
}
69+
$(function(){
70+
window.onresize = resize;
71+
resize();
72+
$(window).bind('hashchange', function() {
73+
choose(window.location.href.toString());
74+
}).trigger('hashchange');
75+
});

0 commit comments

Comments
 (0)