Skip to content

Commit 1fb9759

Browse files
committedJan 16, 2021
fix definition for compatibility with IE11 #2170
1 parent afff197 commit 1fb9759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/printer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function renderImage(image, x, y, pdfKitDoc) {
637637
var height = image.cover.height ? image.cover.height : image.height;
638638
pdfKitDoc.save();
639639
pdfKitDoc.rect(image.x, image.y, width, height).clip();
640-
pdfKitDoc.image(image.image, image.x, image.y, { cover: [width, height], align, valign });
640+
pdfKitDoc.image(image.image, image.x, image.y, { cover: [width, height], align: align, valign: valign });
641641
pdfKitDoc.restore();
642642
} else {
643643
pdfKitDoc.image(image.image, image.x, image.y, { width: image._width, height: image._height });

0 commit comments

Comments
 (0)
Please sign in to comment.