Skip to content

Commit 73df97c

Browse files
committed
[toc2] increase default floating toc size in non-live notebook
1 parent 1e844bf commit 73df97c

File tree

1 file changed

+3
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+3
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
// globally-used status variables:
1616
var rendering_toc_cell = false;
17-
var oldTocSize = {height: '200px', width: '200px'};
17+
// oldTocSize also becomes the default size for a floating toc in a
18+
// non-live notebook
19+
var oldTocSize = {height: 'calc(100% - 180px)', width: '200px'};
1820

1921
try {
2022
// this will work in a live notebook because nbextensions & custom.js

0 commit comments

Comments
 (0)