code: function groupBBFix(selected) {
  	if(svgedit.browser.supportsHVLineContainerBBox()) {
  		try { return selected.getBBox();} catch(e){}
  	}
  	var ref = $.data(selected, 'ref');
  	var matched = null;
  	var ret, copy;
  
  	if(ref) {
  		copy = $(ref).children().clone().attr('visibility', 'hidden');
  		$(svgroot_).append(copy);
  		matched = copy.filter('line, path');
  	} else {
  		matched = $(selected).find('line, path');
  	}
  
  	var issue = false;
  	if(matched.length) {
  		matched.each(function() {
  			var bb = this.getBBox();
  			if(!bb.width || !bb.height) {
  				issue = true;
  			}
  		});
  		if(issue) {
  			var elems = ref ? copy : $(selected).children();
  			ret = getStrokedBBox(elems); // getStrokedBBox defined in svgcanvas
  		} else {
  			ret = selected.getBBox();
  		}
  	} else {
  		ret = selected.getBBox();
  	}
  	if(ref) {
  		copy.remove();
  	}
  	return ret;
  }
docs: Function: groupBBFix Get the given/selected element's bounding box object, checking for horizontal/vertical lines (see issue 717) Note that performance is currently terrible, so some way to improve would be great.  Parameters: selected - Container or <use> DOM element