Open GoogleCodeExporter opened 9 years ago
had the same issue, and added the code to the for loop in the function
elementChanged in svg-editor.js around line 610.
var elem = elems[i];
// if the element changed was the svg, then it could be a resolution change
if (elem && elem.tagName == "svg") {
populateLayers();
var origH, origW;
origH = elem.getAttribute("height");
origW = elem.getAttribute("width");
updateCanvas();
svgCanvas.setResolution(origW, origH)
}
the updateCanvas function was setting the H&W to the defaults. I couldn't
figure out a good was to alter the updateCanvas function, so I did it there.
Original comment by eric.mik...@gmail.com
on 6 Jan 2012 at 9:59
Original issue reported on code.google.com by
tyrell.hills
on 2 Nov 2011 at 5:15