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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user