Port .scrollToCursorPosition() specs

This commit is contained in:
Antonio Scandurra
2015-09-23 10:25:53 +02:00
parent 0ccb34de42
commit 4136c195c9
3 changed files with 21 additions and 21 deletions

View File

@@ -237,6 +237,9 @@ class TextEditorElement extends HTMLElement
scrollToBottom: ->
@setScrollBottom(Infinity)
scrollToCursorPosition: (options) ->
@getModel().getLastCursor().autoscroll(center: options?.center ? true)
getScrollTop: ->
@component.getScrollTop()