Commit 2e892074 authored by Julien Thomas's avatar Julien Thomas

Fix makeCanvas() for IE after Retina feature introduced in 179d2e1d

parent 3b26866e
......@@ -737,6 +737,11 @@
var c = document.createElement('canvas');
c.className = cls;
if (!skipPositioning)
$(c).css({ position: 'absolute', left: 0, top: 0 });
$(c).appendTo(placeholder);
if (!c.getContext) // excanvas hack
c = window.G_vmlCanvasManager.initElement(c);
......@@ -754,11 +759,6 @@
c.style.width = canvasWidth + "px";
c.style.height = canvasHeight + "px";
if (!skipPositioning)
$(c).css({ position: 'absolute', left: 0, top: 0 });
$(c).appendTo(placeholder);
// Save the context so we can reset in case we get replotted
cctx.save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment