mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
remove incorrect return
This commit is contained in:
parent
e956f947eb
commit
e6b205ca90
1 changed files with 4 additions and 8 deletions
|
@ -803,19 +803,15 @@ export const resizeMultipleElements = (
|
|||
: updatedElement.height,
|
||||
);
|
||||
|
||||
if (!metrics) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isTextElement(orig)) {
|
||||
update.fontSize = metrics.size;
|
||||
update.baseline = metrics.baseline;
|
||||
update.fontSize = metrics?.size ?? orig.fontSize;
|
||||
update.baseline = metrics?.baseline ?? orig.baseline;
|
||||
}
|
||||
|
||||
if (boundTextElement) {
|
||||
boundTextUpdates = {
|
||||
fontSize: metrics.size,
|
||||
baseline: metrics.baseline,
|
||||
fontSize: metrics?.size ?? boundTextElement.fontSize,
|
||||
baseline: metrics?.baseline ?? boundTextElement.baseline,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue