Skip to content

Commit

Permalink
Merge pull request #1110 from jcb91/t2
Browse files Browse the repository at this point in the history
[toc2] constrain draggable toc to the body
  • Loading branch information
jcb91 authored Oct 4, 2017
2 parents 7e656aa + d389d80 commit 527a3e4
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 @@ -359,6 +359,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 527a3e4

Please sign in to comment.