Add Editor::scrollToTop to compliment scrollToBottom()

This commit is contained in:
Ben Ogle
2014-09-04 15:17:17 -07:00
parent c511a71488
commit 5ae040f688

View File

@@ -2319,6 +2319,10 @@ class Editor extends Model
scrollToScreenPosition: (screenPosition, options) ->
@displayBuffer.scrollToScreenPosition(screenPosition, options)
# Essential: Scrolls the editor to the top
scrollToTop: ->
@setScrollTop(0)
# Essential: Scrolls the editor to the bottom
scrollToBottom: ->
@setScrollBottom(Infinity)