Skip to content

Commit 2b2b1d7

Browse files
rodrigo-sobraletejedor
authored andcommitted
swancustomenvironments: Automatically scroll to the output-box height
1 parent 56518d0 commit 2b2b1d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SwanCustomEnvironments/swancustomenvironments/templates/customenvs.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
const urlParams = new URLSearchParams(window.location.search);
7474
const file = `/${urlParams.get('file') || ""}`;
7575

76+
// Scroll to the output-box height
77+
window.scrollTo(0, outputBox.scrollHeight);
78+
7679
const get_jh_auth_header = () => {
7780
const xsrf = document.cookie.match(/\b_xsrf=([^;]*)\b/);
7881
return xsrf ? { 'X-XSRFToken': xsrf[1] } : {};

0 commit comments

Comments
 (0)