Commit d04ea3a7 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

scroll to bottom when errors are posted to the Pd console

parent 01da3f62
......@@ -265,6 +265,9 @@ function gui_post_error(objectid, loglevel, errormsg) {
var rest = pd_window.document.createTextNode(": " + errormsg + "\n");
my_p.appendChild(rest);
var printout = pd_window.document.getElementById("console_bottom");
printout.scrollTop = printout.scrollHeight;
// looks like tcl/tk tried to throttle this... maybe we should, too...
/*
after cancel .printout.frame.text yview end-2char
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment