fix: export to pdf image size

fix: #1103
fix: renderNoteHTML image height
This commit is contained in:
windingwind 2024-09-08 10:39:37 +02:00
parent ba50c9d7df
commit 7dce2b0bdc

View File

@ -248,7 +248,7 @@ async function renderNoteHTML(
node.style.width = `${node.getAttribute("width")}px`; node.style.width = `${node.getAttribute("width")}px`;
} }
if (node.hasAttribute("height")) { if (node.hasAttribute("height")) {
node.style.width = `${node.getAttribute("height")}px`; node.style.height = `${node.getAttribute("height")}px`;
} }
}); });
} catch (e) { } catch (e) {