diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index dbb286d0d3..37a45f8464 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -250,6 +250,11 @@ export function refreshOtherComponent(dvId, busiFlag) { for (let i = 0; i < componentData.value.length; i++) { const component = componentData.value[i] if (refreshIdList.includes(component.id) && canvasDataResultMap[component.id]) { + const { top, left, height, width } = componentData.value[i] + canvasDataResultMap[component.id].style.top = top + canvasDataResultMap[component.id].style.left = left + canvasDataResultMap[component.id].style.height = height + canvasDataResultMap[component.id].style.width = width componentData.value[i] = canvasDataResultMap[component.id] } }