mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: Preview image is being stretched when the proportions are w… (#503)
Fixes #490. Preserves the ratio of the preview image when width / height reaches max-width/max-height
This commit is contained in:
parent
a856ce06e9
commit
dc0a4f4cb8
1 changed files with 0 additions and 2 deletions
|
@ -21,8 +21,6 @@ export function getExportCanvasPreview(
|
|||
height
|
||||
) {
|
||||
const tempCanvas = document.createElement("canvas");
|
||||
tempCanvas.style.width = width + "px";
|
||||
tempCanvas.style.height = height + "px";
|
||||
tempCanvas.width = width * scale;
|
||||
tempCanvas.height = height * scale;
|
||||
return tempCanvas;
|
||||
|
|
Loading…
Add table
Reference in a new issue