auto-scroll on new text

This commit is contained in:
Rodolphe Breard 2012-11-27 18:37:30 +01:00
parent 10ea08b41d
commit 9938ff29fb

View file

@ -128,4 +128,5 @@ Tab.prototype.setActive = function() {
Tab.prototype.appendText = function(text) { Tab.prototype.appendText = function(text) {
// TODO: flush text // TODO: flush text
this.chat_log.innerHTML += text; this.chat_log.innerHTML += text;
this.chat_log.scrollTop = 42000;
}; };