webkit hotfix

This commit is contained in:
Fabian Jakobs 2011-11-11 12:27:00 +01:00
commit 209887ad47

View file

@ -58,12 +58,11 @@ var VirtualRenderer = function(container, theme) {
// Imports CSS once per DOM document ('ace_editor' serves as an identifier).
dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
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)
dom.addCssClass(container, "ace_editor");
}, 0)
this.setTheme(theme);