From c818c16b375b0223f212b5096c6a8e96d8a9ed04 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 17 Jan 2023 11:53:16 -0800 Subject: [PATCH] Update scrollX and scrollY config for html2canvas (#34) (#42) Signed-off-by: Joshua Li (cherry picked from commit 7a60ae8a95968d8f977cfc5a48984789e240f20b) --- 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,