moveTextAreaToCursor after updating cursor, to get right position

Conflicts:

	lib/ace/editor.js
This commit is contained in:
Fabian Jakobs 2011-01-31 08:19:44 +01:00
commit 7e6566b85b

View file

@ -280,17 +280,17 @@ var Editor =function(renderer, session) {
}; };
this.onCursorChange = function(e) { this.onCursorChange = function(e) {
this.$highlightBrackets();
// move text input over the cursor
// this is required for iOS and IME
this.renderer.moveTextAreaToCursor(this.textInput.getElement());
this.renderer.updateCursor(this.getCursorPosition(), this.$overwrite); this.renderer.updateCursor(this.getCursorPosition(), this.$overwrite);
if (!this.$blockScrolling && (!e || !e.blockScrolling)) { if (!this.$blockScrolling && (!e || !e.blockScrolling)) {
this.renderer.scrollCursorIntoView(); this.renderer.scrollCursorIntoView();
} }
// move text input over the cursor
// this is required for iOS and IME
this.renderer.moveTextAreaToCursor(this.textInput.getElement());
this.$highlightBrackets();
this.$updateHighlightActiveLine(); this.$updateHighlightActiveLine();
}; };