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,
|
: 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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user