Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: Preview image is being stretched when the proportions are w… (#503)

lissitzdc0a4f4cb8bf
diff --git a/src/scene/getExportCanvasPreview.ts b/src/scene/getExportCanvasPreview.ts
index 75b66f0358..a25c50c6fc 100644
--- a/src/scene/getExportCanvasPreview.ts
+++ b/src/scene/getExportCanvasPreview.ts
@@ -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;