diff --git a/src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js b/src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js index 052bea291..546b8e345 100644 --- a/src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js +++ b/src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js @@ -39,7 +39,7 @@ define([ // the event was renamed from 'resize' to 'resizeOutput' in // https://github.com/jupyter/notebook/commit/b4928d481abd9f7cd996fd4b24078a55880d21e6 - $(".output").on("resize resizeOutput", function () { + $(document).on("resize resizeOutput", ".output", function () { if (!params.scrollDownIsEnabled) return; var output = $(this); setTimeout(function () {