workaround for cloud9 rendering bug
This commit is contained in:
parent
9d1c25eb1b
commit
219d337db3
1 changed files with 5 additions and 2 deletions
|
|
@ -53,11 +53,14 @@ var RenderLoop = require("./renderloop").RenderLoop;
|
|||
var EventEmitter = require("./lib/event_emitter").EventEmitter;
|
||||
var editorCss = require("ace/requirejs/text!./css/editor.css");
|
||||
|
||||
dom.importCssString(editorCss, "ace_editor");
|
||||
|
||||
var VirtualRenderer = function(container, theme) {
|
||||
this.container = container;
|
||||
|
||||
// Imports CSS once per DOM document ('ace_editor' serves as an identifier).
|
||||
dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
|
||||
// TODO: this breaks rendering in Cloud9 with multiple ace instances
|
||||
// // Imports CSS once per DOM document ('ace_editor' serves as an identifier).
|
||||
// dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
|
||||
|
||||
// Chrome has some strange rendering issues if this is not done async
|
||||
setTimeout(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue