fix: compute bounding box correctly for text element when multiple element resizing (#6307)

pull/6309/head
Aakansha Doshi 2 years ago committed by GitHub
parent 15655acb5a
commit 1ce933d2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -693,7 +693,9 @@ const resizeMultipleElements = (
};
const fontSize = measureFontSizeFromWidth(
boundTextElement ?? (element.orig as ExcalidrawTextElement),
getMaxContainerWidth(updatedElement),
boundTextElement
? getMaxContainerWidth(updatedElement)
: updatedElement.width,
);
if (!fontSize) {

Loading…
Cancel
Save