mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Port .scrollToCursorPosition() specs
This commit is contained in:
@@ -237,6 +237,9 @@ class TextEditorElement extends HTMLElement
|
||||
scrollToBottom: ->
|
||||
@setScrollBottom(Infinity)
|
||||
|
||||
scrollToCursorPosition: (options) ->
|
||||
@getModel().getLastCursor().autoscroll(center: options?.center ? true)
|
||||
|
||||
getScrollTop: ->
|
||||
@component.getScrollTop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user