Created
July 8, 2010 21:46
-
-
Save squidsoup/468694 to your computer and use it in GitHub Desktop.
flot and excanvas issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jquery.flot: | |
canvas = $('<canvas width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>').appendTo(target).get(0); | |
if ($.browser.msie) { | |
// excanvas hack | |
canvas = window.G_vmlCanvasManager.initElement(canvas); | |
} | |
ctx = canvas.getContext("2d"); | |
//IE6 needs the canvas element initialised like this instead | |
var canvasHTMLDOM = document.createElement("canvas"); | |
jQuery(target).append(canvasHTMLDOM); | |
if ($.browser.msie) { | |
// excanvas hack | |
canvas = window.G_vmlCanvasManager.initElement(canvas); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment