mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-01 11:41:24 +00: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) ->
|
scope.$watch "readOnly", (value) ->
|
||||||
editor.setReadOnly !!value
|
editor.setReadOnly !!value
|
||||||
|
|
||||||
|
editor.setOption("scrollPastEnd", true)
|
||||||
|
|
||||||
resetSession = () ->
|
resetSession = () ->
|
||||||
session = editor.getSession()
|
session = editor.getSession()
|
||||||
session.setUseWrapMode(true)
|
session.setUseWrapMode(true)
|
||||||
session.setMode("ace/mode/latex")
|
session.setMode("ace/mode/latex")
|
||||||
session.setAnnotations scope.annotations
|
session.setAnnotations scope.annotations
|
||||||
|
|
||||||
|
|
||||||
updateCount = 0
|
updateCount = 0
|
||||||
onChange = () ->
|
onChange = () ->
|
||||||
updateCount++
|
updateCount++
|
||||||
|
|
Loading…
Reference in a new issue