Issue #1232: Scroll editor into browser view on cursor movement
This commit is contained in:
parent
3cbb8dda55
commit
bd6dda68f0
2 changed files with 44 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue