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:
Tim van der Meij 2021-03-14 15:53:50 +01:00 committed by GitHub
commit eb92ed12f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -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) {