Browse Source

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

pull/6309/head
Aakansha Doshi 3 years ago committed by GitHub
parent
commit
1ce933d2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/element/resizeElements.ts

4
src/element/resizeElements.ts

@ -693,7 +693,9 @@ const resizeMultipleElements = ( @@ -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