Issue #1232: Scroll editor into browser view on cursor movement

This commit is contained in:
nightwing 2013-02-05 00:28:13 +04:00
commit bd6dda68f0
2 changed files with 44 additions and 1 deletions

View file

@ -96,7 +96,7 @@ require("ace/commands/default_commands").commands.push({
var editor = ace.edit("editor");
editor.setTheme("ace/theme/twilight");
editor.session.setMode("ace/mode/javascript");
editor.setAutoScrollEditorIntoView();
var count = 1;
function add() {
@ -113,6 +113,8 @@ function add() {
editor = ace.edit(el)
editor.setTheme(theme)
editor.session.setMode("ace/mode/javascript")
editor.setAutoScrollEditorIntoView()
editor.setValue([
"this is editor number: ", count, "\n",