Skip to content

Commit 64abaab

Browse files
committed
[scroll_down] fix 5.x compatibility
1 parent 4a89982 commit 64abaab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/jupyter_contrib_nbextensions/nbextensions/scroll_down/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Description: Scroll outputs down automatically
44
Link: readme.md
55
Icon: icon.png
66
Main: main.js
7-
Compatibility: 4.x
7+
Compatibility: 4.x, 5.x

src/jupyter_contrib_nbextensions/nbextensions/scroll_down/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ define([
3838

3939
console.log("[ScrollDown] is loaded");
4040

41-
$(".output").on("resize", function () {
41+
// the event was renamed from 'resize' to 'resizeOutput' in
42+
// https://github.com/jupyter/notebook/commit/b4928d481abd9f7cd996fd4b24078a55880d21e6
43+
$(".output").on("resize resizeOutput", function () {
4244
if (!params.scrollDownIsEnabled) return;
4345
var output = $(this);
4446
setTimeout(function () {

0 commit comments

Comments
 (0)