Prevent crazy selector boxes for groups in WebKit - still problems in Opera

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1089 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-12-22 22:56:17 +00:00
parent 6abaf4c712
commit 2668d9f49a
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ function BatchCommand(text) {
offset += 2/canvas.getZoom();
}
var bbox = canvas.getBBox(selected);
if(selected.tagName == 'g') {
if(!isWebkit && selected.tagName == 'g') {
// The bbox for a group does not include stroke vals, so we
// get the bbox based on its children.
var stroked_bbox = canvas.getStrokedBBox(selected.childNodes);