Open GoogleCodeExporter opened 9 years ago
Maybe instead of adding a CSS, "document.write('<style......." ?
Original comment by maitred...@gmail.com
on 17 Sep 2009 at 12:12
[deleted comment]
I was able to fix this issue by update line 111 of excanvas.js to the code
below. This is a fix which adds the style to the last currently existing style
sheet object if the IE limit of 31 is already reached. The code for this
solution is from http://dean.edwards.name/weblog/2010/02/bug85/.
var ss = null;
var cssText = 'canvas{display:inline-block;overflow:hidden;' +
// default size is 300x150 in Gecko and Opera
'text-align:left;width:300px;height:150px}';
try{
ss = doc.createStyleSheet();
ss.owningElement.id = 'ex_canvas_';
ss.cssText = cssText;
} catch(e) {
ss = document.styleSheets[document.styleSheets.length - 1];
ss.cssText += "\r\n" + cssText;
}
Original comment by beau.bur...@gmail.com
on 2 Nov 2011 at 4:28
Original issue reported on code.google.com by
guillaum...@gmail.com
on 30 Jul 2009 at 6:31