fix(chore): make svgedit less intrusive by adding components in its div instead of document.body.

This commit is contained in:
JFH
2021-08-04 11:24:47 +02:00
parent ee6bda3c5c
commit b048afb72e
6 changed files with 13 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ export default {
let showGrid = svgEditor.configObj.curConfig.showGrid || false;
hcanvas.style.display = 'none';
document.body.appendChild(hcanvas);
svgEditor.$svgEditor.appendChild(hcanvas);
const canvasGrid = svgdoc.createElementNS(NS.SVG, 'svg');
assignAttributes(canvasGrid, {