diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index 95be965a74..5df55f1fdc 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -422,7 +422,7 @@ const createGroup = () => { let style = { left: 0, top: 0, right: 0, bottom: 0 } if (component.component == 'Group') { component.propValue.forEach(item => { - const rectInfo = _$(`#component${item.id}`).getBoundingClientRect() + const rectInfo = _$(`#shape-id-${item.id}`).getBoundingClientRect() style.left = rectInfo.left - editorX.value style.top = rectInfo.top - editorY.value style.right = rectInfo.right - editorX.value @@ -1545,23 +1545,6 @@ defineExpose({ :dv-info="dvInfo" :canvas-active="canvasActive" /> -