mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:25:28 -05:00
allow ace to scoll off screen
This commit is contained in:
parent
56efefd6d4
commit
14d32af6bf
1 changed files with 3 additions and 0 deletions
|
@ -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++
|
||||
|
|
Loading…
Reference in a new issue