From 14d32af6bfcf77922ca7084ced35d085df2d31c0 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 30 Oct 2014 08:33:54 +0000 Subject: [PATCH] allow ace to scoll off screen --- .../web/public/coffee/ide/editor/directives/aceEditor.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index 28530a660a..455bfae23a 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -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++