diff --git a/gui/default/syncthing/core/logViewerModalView.html b/gui/default/syncthing/core/logViewerModalView.html
index f958cc000..184a0ecc8 100644
--- a/gui/default/syncthing/core/logViewerModalView.html
+++ b/gui/default/syncthing/core/logViewerModalView.html
@@ -9,7 +9,7 @@
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js
index efbdbba17..b09965f9f 100755
--- a/gui/default/syncthing/core/syncthingController.js
+++ b/gui/default/syncthing/core/syncthingController.js
@@ -1430,6 +1430,11 @@ angular.module('syncthing.core')
// Browser events do not cause redraw, trigger manually.
$scope.$apply();
},
+ scrollToBottom: function () {
+ var textArea = $('#logViewerText');
+ var scrollHeight = textArea.prop('scrollHeight');
+ textArea.prop('scrollTop', scrollHeight);
+ },
timer: null,
entries: [],
paused: false,