fix the height of " table of contents "

This commit is contained in:
geekplux 2015-12-09 01:11:30 +08:00
parent 328260286c
commit 226544342e
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ $( document ).ready(function() {
// add sticky table headers
$('table').stickyTableHeaders();
var $postamble = $('#postamble');
var $tableOfContents = $('#table-of-contents');
// set the height of tableOfContents
$tableOfContents.height($tableOfContents.height() - $postamble.outerHeight());
});
window.SphinxRtdTheme = (function (jquery) {