diff options
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r-- | docs/pkgdown.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js index ded9e7df..c8b38c49 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -1,13 +1,8 @@ $(function() { - - $('#tocnav').affix({ - offset: { - top: $('#tocnav').offset().top - 80 - } - }); + $("#sidebar").stick_in_parent({offset_top: 40}); $('body').scrollspy({ - target: '#tocnav', - offset: 80 + target: '#sidebar', + offset: 60 }); }); |