An error appears in the current version of Ace Editor. If you manually editor.resize(true) , it will recalculate the height and the scroll functions will work correctly:
var editor = ace.edit('editor'); editor.resize(true); editor.scrollToLine(50, true, true, function () {}); editor.gotoLine(50, 10, true);
http://jsfiddle.net/Xu9Tb/1/
source share