Widen the selectedOutline a bit for text elements so that the text is instantly legible

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@98 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-11 15:21:00 +00:00
parent f3bce20321
commit 933ce067d8
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ function SvgCanvas(c)
if (sw != null && sw != "") {
offset += parseInt(sw)/2;
}
if (selected.tagName == "text") {
offset += 2;
}
selectedOutline.setAttribute("x", bbox.x-offset);
selectedOutline.setAttribute("y", bbox.y-offset);
selectedOutline.setAttribute("width", bbox.width+(offset<<1));