Skip to content

Commit

Permalink
Update scrollX and scrollY config for html2canvas (opensearch-project#34
Browse files Browse the repository at this point in the history
)

Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit 7a60ae8)
  • Loading branch information
joshuali925 committed Jan 17, 2023
1 parent 3254720 commit 4784382
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 4784382

Please sign in to comment.