use text-indent: -1em; to hide cursor on ie

as suggested in https://github.com/ajaxorg/ace/issues/1640
This commit is contained in:
nightwing 2013-10-10 13:02:47 +04:00
commit 1d4d76b1ea
2 changed files with 3 additions and 1 deletions

View file

@ -143,6 +143,7 @@
font: inherit;
padding: 0 1px;
margin: 0 -1px;
text-indent: -1em;
}
.ace_text-input.ace_composition {
@ -150,6 +151,7 @@
color: #111;
z-index: 1000;
opacity: 1;
text-indent: 0;
}
.ace_layer {

View file

@ -70,7 +70,7 @@ var VirtualRenderer = function(container, theme) {
// dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
// in IE <= 9 the native cursor always shines through
this.$keepTextAreaAtCursor = !useragent.isIE;
this.$keepTextAreaAtCursor = true;
dom.addCssClass(this.container, "ace_editor");