Skip to content

Commit

Permalink
[toc2] constrain draggable toc to the body
Browse files Browse the repository at this point in the history
so that it doesn't end up out of view
  • Loading branch information
jcb91 committed Sep 25, 2017
1 parent 862c6b3 commit d389d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@
// Ensure position is fixed (again)
$('#toc-wrapper').css('position', 'fixed');
},
containment: 'body',
snap: 'body, #site',
});

$('#toc-wrapper').resizable({
Expand Down

0 comments on commit d389d80

Please sign in to comment.