Skip to content

Commit

Permalink
Merge pull request #7 from EyeSeeTea/fix/scale
Browse files Browse the repository at this point in the history
Force scale=1 to avoid clipped screenshots
  • Loading branch information
adrianq committed Sep 3, 2020
2 parents 74cbbc5 + db2ef0f commit 64b8da1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/feedback.js
Expand Up @@ -491,7 +491,9 @@ var defaultI18nProperties = require('../i18n/en.properties');
redraw(ctx, false);
}
$("#feedback-note").val(settings.descriptionTemplate);
html2canvas($('body').get(0)).then(
const el = $("body").get(0);
const options = { scale: 1 };
html2canvas(el, options).then(
function (canvas) {
hideSpinner();
if (!settings.screenshotStroke) {
Expand Down

0 comments on commit 64b8da1

Please sign in to comment.