diff --git a/js/menus/otherUI/Console.js b/js/menus/otherUI/Console.js index 7159a27cdc24698c4bd6ae5fc2712862c0caa6f8..72c4b234c0b747b5892e6a0ab026868c70ba3930 100644 --- a/js/menus/otherUI/Console.js +++ b/js/menus/otherUI/Console.js @@ -24,6 +24,7 @@ define(['jquery', 'underscore', 'backbone', 'appState'], function($, _, Backbone }); this._setWidth(false); this._setVisibility(); + this._scrollToBottom(); }, _setWidth: function(immediately){ @@ -67,6 +68,11 @@ define(['jquery', 'underscore', 'backbone', 'appState'], function($, _, Backbone var height = $output.height(); $output.append(html); $output.height(height); + this._scrollToBottom(); + }, + + _scrollToBottom: function(){ + var $output = $("#consoleOutput"); $output.scrollTop($output[0].scrollHeight); },