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