allow ace to scoll off screen

This commit is contained in:
Henry Oswald 2014-10-30 08:33:54 +00:00
parent 56efefd6d4
commit 14d32af6bf

View file

@ -163,12 +163,15 @@ define [
scope.$watch "readOnly", (value) ->
editor.setReadOnly !!value
editor.setOption("scrollPastEnd", true)
resetSession = () ->
session = editor.getSession()
session.setUseWrapMode(true)
session.setMode("ace/mode/latex")
session.setAnnotations scope.annotations
updateCount = 0
onChange = () ->
updateCount++