diff --git a/src/js/logs.js b/src/js/logs.js index 4c7b764c8..fd22f27c7 100644 --- a/src/js/logs.js +++ b/src/js/logs.js @@ -61,7 +61,7 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f // check if we want to auto scroll (this is before the appending, as that skews the check) var tmp = $('.logs-container'); - var autoScroll = tmp[0].scrollTop > (tmp[0].scrollTopMax - 24); + var autoScroll = tmp[0].scrollTop > (tmp[0].scrollHeight - tmp.innerHeight() - 24); var logLine = $('
'); var timeString = moment.utc(data.realtimeTimestamp/1000).format('MMM DD HH:mm:ss');