mirror of
https://github.com/excalidraw/excalidraw.git
synced 2024-11-10 11:35:52 +01:00
fix: compute bounding box correctly for text element when multiple element resizing (#6307)
This commit is contained in:
parent
15655acb5a
commit
1ce933d2f5
@ -693,7 +693,9 @@ const resizeMultipleElements = (
|
||||
};
|
||||
const fontSize = measureFontSizeFromWidth(
|
||||
boundTextElement ?? (element.orig as ExcalidrawTextElement),
|
||||
getMaxContainerWidth(updatedElement),
|
||||
boundTextElement
|
||||
? getMaxContainerWidth(updatedElement)
|
||||
: updatedElement.width,
|
||||
);
|
||||
|
||||
if (!fontSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user