From cec5232a7a35e33a1439a75dfdc264c5fcd0d895 Mon Sep 17 00:00:00 2001 From: Narek Malkhasyan Date: Mon, 5 May 2025 14:15:42 +0400 Subject: [PATCH] fix: when resizing element, update bound elements after final size of element is determined (#9475) --- packages/element/src/resizeElements.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/element/src/resizeElements.ts b/packages/element/src/resizeElements.ts index 8a1702afa..43a5e7211 100644 --- a/packages/element/src/resizeElements.ts +++ b/packages/element/src/resizeElements.ts @@ -962,11 +962,6 @@ export const resizeSingleElement = ( isDragging: false, }); - updateBoundElements(latestElement, scene, { - // TODO: confirm with MARK if this actually makes sense - newSize: { width: nextWidth, height: nextHeight }, - }); - if (boundTextElement && boundTextFont != null) { scene.mutateElement(boundTextElement, { fontSize: boundTextFont.fontSize, @@ -978,6 +973,11 @@ export const resizeSingleElement = ( handleDirection, shouldMaintainAspectRatio, ); + + updateBoundElements(latestElement, scene, { + // TODO: confirm with MARK if this actually makes sense + newSize: { width: nextWidth, height: nextHeight }, + }); } };