From fdf9676ea1d34737b8b2b16b931469d5a79a87bf Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 17 May 2012 16:04:57 -0700 Subject: [PATCH] Add scrollBottom to editor --- src/app/editor.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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()