From 0ee7c8c7f8d2a4cd616292cca2760df1c1e1349c Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 13 Jan 2023 20:58:54 +0000 Subject: [PATCH] Update scrollX and scrollY config for html2canvas Signed-off-by: Joshua Li --- public/components/visual_report/generate_report.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/components/visual_report/generate_report.ts b/public/components/visual_report/generate_report.ts index 52e82121..8354ac73 100644 --- a/public/components/visual_report/generate_report.ts +++ b/public/components/visual_report/generate_report.ts @@ -161,6 +161,8 @@ export const generateReport = async (id: string, forceDelay = 15000) => { footer ); return html2canvas(document.body, { + scrollX: 0, + scrollY: 0, windowWidth: width, windowHeight: height, width,