mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add scrollBottom to editor
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user