Skip to content

Commit

Permalink
Force scale=1 to avoid clipped screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tokland committed Aug 31, 2020
1 parent 74cbbc5 commit db2ef0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/feedback.js
Original file line number Diff line number Diff line change
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 db2ef0f

Please sign in to comment.