aboutsummaryrefslogtreecommitdiff
path: root/tests/embind/shell.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/embind/shell.html')
-rw-r--r--tests/embind/shell.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/embind/shell.html b/tests/embind/shell.html
index f0ee10f8..7a3b0a07 100644
--- a/tests/embind/shell.html
+++ b/tests/embind/shell.html
@@ -48,7 +48,7 @@
//text = text.replace(/>/g, ">");
//text = text.replace('\n', '<br>', 'g');
element.value += text + "\n";
- element.scrollTop = 99999; // focus on bottom
+ element.scrollTop = element.scrollHeight; // focus on bottom
};
})(),
printErr: function(text) {