Я пытаюсь выполнить довольно простую операцию с Ace Editor: заставить редактор перейти к определенной строке. Я не могу заставить его работать, хотя!
См. этот jsFiddle: http://jsfiddle.net/Xu9Tb/
var editor = ace.edit('editor');
editor.scrollToLine(50, true, true, function () {});
// Doesn't do anything at all
editor.gotoLine(50, 10, true);
// Will move the caret to the line, but it will not scroll
// to the editor to the line if it's off screen
Любой совет?
Спасибо.