Skip to content

Commit 1a628e7

Browse files
authored
Merge pull request #1227 from cjld/master
[scroll_down]output will not scroll down when add new block
2 parents 53eb1b8 + 786c44a commit 1a628e7

File tree

1 file changed

+1
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/scroll_down

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ define([
3939

4040
// the event was renamed from 'resize' to 'resizeOutput' in
4141
// https://github.com/jupyter/notebook/commit/b4928d481abd9f7cd996fd4b24078a55880d21e6
42-
$(".output").on("resize resizeOutput", function () {
42+
$(document).on("resize resizeOutput", ".output", function () {
4343
if (!params.scrollDownIsEnabled) return;
4444
var output = $(this);
4545
setTimeout(function () {

0 commit comments

Comments
 (0)