Skip to content

Commit dcdd43b

Browse files
author
Philip Guo
committed
properly handle window resize
1 parent 468d8ca commit dcdd43b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

edu-python.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,5 +1298,12 @@ $(document).ready(function() {
12981298
}
12991299
}
13001300
});
1301+
1302+
// redraw everything on window resize so that connectors are in the
1303+
// right place
1304+
$(window).resize(function() {
1305+
updateOutput();
1306+
});
1307+
13011308
});
13021309

0 commit comments

Comments
 (0)