Add scrollBottom to editor

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-17 16:04:57 -07:00
parent cfb49aeba9
commit fdf9676ea1

View File

@@ -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()