From 226544342e6ef868fe57c5977b7641eabe9050dc Mon Sep 17 00:00:00 2001 From: geekplux Date: Wed, 9 Dec 2015 01:11:30 +0800 Subject: [PATCH] fix the height of " table of contents " --- styles/readtheorg/js/readtheorg.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/styles/readtheorg/js/readtheorg.js b/styles/readtheorg/js/readtheorg.js index ee8187d..5597814 100644 --- a/styles/readtheorg/js/readtheorg.js +++ b/styles/readtheorg/js/readtheorg.js @@ -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) {