From 0389e6bd86e9820b1423b26aa3576242143f16cc Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 30 Jun 2009 17:50:08 +0000 Subject: [PATCH] Keep the selector group at the bottom of the document. Put the rubber-band box into the selector group. Do not serialize the selectorGroup or its children git-svn-id: http://svg-edit.googlecode.com/svn/trunk@240 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 7cb9bb2c..920afee8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -306,7 +306,8 @@ function SvgCanvas(c) } if (this.rubberBandBox == null) { - this.rubberBandBox = addSvgElementFromJson({ "element": "rect", + this.rubberBandBox = this.selectorParentGroup.appendChild( + addSvgElementFromJson({ "element": "rect", "attr": { "id": "selectorRubberBand", "fill": "blue", @@ -316,7 +317,7 @@ function SvgCanvas(c) "display": "none", "pointer-events": "none", } - }); + })); } return this.rubberBandBox; } @@ -451,11 +452,13 @@ function SvgCanvas(c) var bOneLine = false; for (i=0; i