From 53fbb25328a8c8c20c8dec5c05a290622ee697a2 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 22 Sep 2011 23:58:12 +0000 Subject: [PATCH] Check in James Wright's patch for proper zooming of the background image git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2040 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 386b22fe..00421152 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -8601,6 +8601,14 @@ this.updateCanvas = function(w, h) { x: x, y: y }); + + var bg_img = getElem('background_image'); + if (bg_img) { + assignAttributes(bg_img, { + 'width': '100%', + 'height': '100%' + }); + } selectorManager.selectorParentGroup.setAttribute("transform","translate(" + x + "," + y + ")");