Skip to content

Commit

Permalink
Update scrollX and scrollY config for html2canvas (#34) (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
(cherry picked from commit 7a60ae8)

Co-authored-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
opensearch-trigger-bot[bot] and joshuali925 committed Jan 17, 2023
1 parent 4a29254 commit 92cf4ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/components/visual_report/generate_report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 92cf4ea

Please sign in to comment.