Update svgutils.js

remove the commented 'if' to resolve #48
master
Harikrishnan K 2015-12-11 12:04:03 +05:30
parent 971aa98ac1
commit 750c9c7141
1 changed files with 2 additions and 2 deletions

View File

@ -500,14 +500,14 @@ svgedit.utilities.getBBox = function(elem) {
// This is resolved in later versions of webkit, perhaps we should
// have a featured detection for correct 'use' behavior?
// ——————————
//if(!svgedit.browser.isWebkit()) {
if(!svgedit.browser.isWebkit()) {
var bb = {};
bb.width = ret.width;
bb.height = ret.height;
bb.x = ret.x + parseFloat(selected.getAttribute('x')||0);
bb.y = ret.y + parseFloat(selected.getAttribute('y')||0);
ret = bb;
//}
}
} else if(~visElems_arr.indexOf(elname)) {
if (selected) { ret = selected.getBBox(); }
else {