fix: when resizing element, update bound elements after final size of element is determined (#9475)
Tests / test (push) Has been cancelled Details
Auto release excalidraw next / Auto-release-excalidraw-next (push) Has been cancelled Details
Build Docker image / build-docker (push) Has been cancelled Details
Cancel previous runs / cancel (push) Has been cancelled Details
Publish Docker / publish-docker (push) Has been cancelled Details
New Sentry production release / sentry (push) Has been cancelled Details

This commit is contained in:
Narek Malkhasyan 2025-05-05 14:15:42 +04:00 committed by GitHub
parent d4f70e9f31
commit cec5232a7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -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 },
});
}
};