Fix Opera bug with canvas shadow, thanks to a tip from Erik Dahlstrom

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1374 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-02-10 21:02:42 +00:00
parent ae214cfe0e
commit 140ab45f7d

View File

@@ -669,10 +669,9 @@ function BatchCommand(text) {
'height': 480,
'x': 0,
'y': 0,
'overflow': 'visible',
'style': 'pointer-events:none'
});
// Opera has a rendering bug
if (!window.opera) canvasbg.setAttribute("filter", "url(#canvashadow)");
var rect = svgdoc.createElementNS(svgns, "rect");
assignAttributes(rect, {
@@ -683,6 +682,7 @@ function BatchCommand(text) {
'stroke-width': 1,
'stroke': '#000',
'fill': '#FFF',
'filter': 'url(#canvashadow)',
'style': 'pointer-events:none'
});
canvasbg.appendChild(rect);