From 79d64993e267063a81d959a825b5599d5c9b0f1e Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Tue, 8 Jun 2021 18:47:40 +0530 Subject: [PATCH] #284 Bounding box moves when moving a symbol --- src/svgcanvas/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svgcanvas/utilities.js b/src/svgcanvas/utilities.js index 6b356fcdc..2b41c90b4 100644 --- a/src/svgcanvas/utilities.js +++ b/src/svgcanvas/utilities.js @@ -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 {