stupid chrome fix

This commit is contained in:
Fabian Jakobs 2011-11-10 18:18:15 +01:00
commit c1ee54cae7

View file

@ -60,6 +60,11 @@ var VirtualRenderer = function(container, theme) {
dom.importCssString(editorCss, "ace_editor", container.ownerDocument); dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
dom.addCssClass(this.container, "ace_editor"); dom.addCssClass(this.container, "ace_editor");
// Chrome has some strange rendering issues if this is not done async
setTimeout(function() {
dom.addCssClass(this.container, "ace_editor");
}.bind(this), 0)
this.setTheme(theme); this.setTheme(theme);
this.$gutter = dom.createElement("div"); this.$gutter = dom.createElement("div");