mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-06 05:46:26 +00:00
fix: when resizing element, update bound elements after final size of element is determined (#9475)
Some checks failed
Auto release excalidraw next / Auto-release-excalidraw-next (push) Has been cancelled
Build Docker image / build-docker (push) Has been cancelled
Cancel previous runs / cancel (push) Has been cancelled
Publish Docker / publish-docker (push) Has been cancelled
New Sentry production release / sentry (push) Has been cancelled
Some checks failed
Auto release excalidraw next / Auto-release-excalidraw-next (push) Has been cancelled
Build Docker image / build-docker (push) Has been cancelled
Cancel previous runs / cancel (push) Has been cancelled
Publish Docker / publish-docker (push) Has been cancelled
New Sentry production release / sentry (push) Has been cancelled
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user