This commit is contained in:
Nathan Sobo
2012-11-07 13:52:55 -07:00
parent f33af85154
commit 693b110f1c

View File

@@ -262,6 +262,7 @@ class Editor extends View
newScrollTop = @scrollTop() - @scrollView[0].clientHeight
@activeEditSession.moveCursorUp(@getPageRows())
@scrollTop(newScrollTop, adjustVerticalScrollbar: true)
getPageRows: ->
Math.max(1, Math.ceil(@scrollView[0].clientHeight / @lineHeight))