Skip to content

Commit 1dfafa6

Browse files
committed
[toc2] Restore cells to original width, see #993, following @jcb91
1 parent 6a3c37f commit 1dfafa6

File tree

1 file changed

+2
-2
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+2
-2
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ var make_link = function(h, num_lbl) {
177177
$('#notebook-container').css('margin-left', 30);
178178
$('#notebook-container').css('width', $('#notebook').width() - 30);
179179
} else { // original width
180-
$("#notebook-container").css({'width':st.nbcontainer_width, 'margin-left':'auto'})
180+
$("#notebook-container").css({'width':'', 'margin-left':'auto'})
181181
}
182182
}
183183
} else {
184184
if (cfg.widenNotebook) {
185185
$('#notebook-container').css('margin-left', 30);
186186
$('#notebook-container').css('width', $('#notebook').width() - 30);
187187
} else { // original width
188-
$("#notebook-container").css({'width':st.nbcontainer_width, 'margin-left':'auto'})
188+
$("#notebook-container").css({'width':'', 'margin-left':'auto'})
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)