Merge pull request #579 from SVG-Edit/issues/284
#284 Bounding box moves when moving a symbolmaster
commit
19490c04e3
|
@ -658,7 +658,7 @@ export const 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 (!isWebkit()) {
|
/* if (!isWebkit()) {
|
||||||
const { x, y, width, height } = ret;
|
const { x, y, width, height } = ret;
|
||||||
const bb = {
|
const bb = {
|
||||||
width,
|
width,
|
||||||
|
@ -667,7 +667,7 @@ export const getBBox = function (elem) {
|
||||||
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
|
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
|
||||||
};
|
};
|
||||||
ret = bb;
|
ret = bb;
|
||||||
}
|
} */
|
||||||
} else if (visElemsArr.includes(elname)) {
|
} else if (visElemsArr.includes(elname)) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue