diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 389997a7e..4173abd8f 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -275,8 +275,11 @@ class Editor extends View if options?.adjustVerticalScrollbar ? true @verticalScrollbar.scrollTop(scrollTop) - scrollBottom: -> - @scrollTop() + @scrollView.height() + scrollBottom: (scrollBottom) -> + if scrollBottom? + @scrollTop(scrollBottom - @scrollView.height()) + else + @scrollTop() + @scrollView.height() renderVisibleLines: -> @clearLines()