From 62bea19a9a7a07c1f80549d741933d43fb6014de Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 13 Jan 2023 13:34:48 -0800 Subject: [PATCH] Update scrollX and scrollY config for html2canvas (#34) 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,