Skip to content

Commit

Permalink
fix definition for compatibility with IE11 #2170
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Jan 16, 2021
1 parent afff197 commit 1fb9759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function renderImage(image, x, y, pdfKitDoc) {
var height = image.cover.height ? image.cover.height : image.height;
pdfKitDoc.save();
pdfKitDoc.rect(image.x, image.y, width, height).clip();
pdfKitDoc.image(image.image, image.x, image.y, { cover: [width, height], align, valign });
pdfKitDoc.image(image.image, image.x, image.y, { cover: [width, height], align: align, valign: valign });
pdfKitDoc.restore();
} else {
pdfKitDoc.image(image.image, image.x, image.y, { width: image._width, height: image._height });
Expand Down

0 comments on commit 1fb9759

Please sign in to comment.