mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #13100 from emilio/container-overflow
print: Ensure print containers have the right size and don't create overflow.
This commit is contained in:
commit
eb92ed12f2
3 changed files with 7 additions and 6 deletions
|
@ -198,6 +198,8 @@ PDFPrintService.prototype = {
|
|||
|
||||
const wrapper = document.createElement("div");
|
||||
wrapper.appendChild(img);
|
||||
wrapper.style.width = img.style.width;
|
||||
wrapper.style.height = img.style.height;
|
||||
this.printContainer.appendChild(wrapper);
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue