stupid chrome fix

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

View file

@ -59,6 +59,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)
this.setTheme(theme);