mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 12:29:58 +02:00
remove incorrect return
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user