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,
|
: updatedElement.height,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!metrics) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isTextElement(orig)) {
|
if (isTextElement(orig)) {
|
||||||
update.fontSize = metrics.size;
|
update.fontSize = metrics?.size ?? orig.fontSize;
|
||||||
update.baseline = metrics.baseline;
|
update.baseline = metrics?.baseline ?? orig.baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boundTextElement) {
|
if (boundTextElement) {
|
||||||
boundTextUpdates = {
|
boundTextUpdates = {
|
||||||
fontSize: metrics.size,
|
fontSize: metrics?.size ?? boundTextElement.fontSize,
|
||||||
baseline: metrics.baseline,
|
baseline: metrics?.baseline ?? boundTextElement.baseline,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue