Merge pull request #579 from SVG-Edit/issues/284

#284 Bounding box moves when moving a symbol
master
JFH 2021-06-08 16:20:42 +02:00 committed by GitHub
commit 19490c04e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,7 @@ export const getBBox = function (elem) {
// This is resolved in later versions of webkit, perhaps we should
// have a featured detection for correct 'use' behavior?
// ——————————
if (!isWebkit()) {
/* if (!isWebkit()) {
const { x, y, width, height } = ret;
const bb = {
width,
@ -667,7 +667,7 @@ export const getBBox = function (elem) {
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
} */
} else if (visElemsArr.includes(elname)) {
if (selected) {
try {