##// END OF EJS Templates
Fixing graphs for IE9 and probably above.
Leonardo -
r3535:2792019c beta
parent child Browse files
Show More
@@ -26,7 +26,7 b' function BranchRenderer() {'
26
26
27 this.canvas = document.getElementById("graph_canvas");
27 this.canvas = document.getElementById("graph_canvas");
28
28
29 if (navigator.userAgent.indexOf('MSIE') >= 0)
29 if (!document.createElement("canvas").getContext)
30 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
30 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
31 this.ctx = this.canvas.getContext('2d');
31 this.ctx = this.canvas.getContext('2d');
32 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
32 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
General Comments 0
You need to be logged in to leave comments. Login now