No reason to introduce a SVG rect here, we can just use the background-color or background-image of the svgcanvas div
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@644 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
3065e6a451
commit
33ae9554a3
|
@ -563,13 +563,6 @@ function BatchCommand(text) {
|
|||
svgroot.setAttribute("xmlns", svgns);
|
||||
svgroot.setAttribute("xmlns:xlink", xlinkns);
|
||||
container.appendChild(svgroot);
|
||||
var svgbkgnd = svgdoc.createElementNS(svgns, "rect");
|
||||
svgbkgnd.setAttribute("width", "100%");
|
||||
svgbkgnd.setAttribute("height", "100%");
|
||||
svgbkgnd.setAttribute("fill", "none");
|
||||
svgbkgnd.setAttribute("fill-opacity", "100%");
|
||||
svgbkgnd.setAttribute("id", "svgbkgnd");
|
||||
svgroot.appendChild(svgbkgnd);
|
||||
var svgzoom = svgdoc.createElementNS(svgns, "svg");
|
||||
svgzoom.setAttribute('id', 'svgzoom');
|
||||
svgzoom.setAttribute('viewBox', '0 0 640 480');
|
||||
|
|
Loading…
Reference in New Issue