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-75d572ba1dddmaster
parent
f3bce20321
commit
933ce067d8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue