Fix doc TOC height and adapt it on window resize

master
Daniel Berteaud 10 years ago
parent f480f9b537
commit f30a1e4de5
  1. 6
      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',

Loading…
Cancel
Save