diff --git a/public/js/vroom.js b/public/js/vroom.js index 5405a2d..7952153 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -433,8 +433,12 @@ function initIndex(){ // The documentation page function initDoc(){ + window.onresize = function (){ + $('#toc').width($('#toc').parents().width()); + $('#toc').css('max-height', maxHeight() - 100 + 'px'); + }; $('#toc').width($('#toc').parents().width()); - $('#toc').css('height', maxHeight() - 100 + 'px'); + $('#toc').css('max-height', maxHeight() - 100 + 'px'); $('#toc').toc({ elementClass: 'toc',