Skip to content

Commit

Permalink
Merge pull request #1322 from blockchain-certificates/fix/remove-heig…
Browse files Browse the repository at this point in the history
…ht-0-to-not-cut-print-container

fix(DownloadPdf): remove height 0 for container
  • Loading branch information
raiseandfall authored Jul 5, 2022
2 parents 3eaf99f + 6495fb7 commit b816cda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/domain/certificates/useCases/downloadPDF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import { forceDownloadFile, getFileExtensionFromContentType } from '../../../hel

const HTML2PDF_DOM_CONTAINER_ID = 'html2pdf-dom-container-identifier';
const HTML2PDF_CONTAINER_HIDE_STYLE = {
height: '0',
overflow: 'hidden'
overflow: 'hidden',
left: '-1000px'
};
const HTML2PDF_CONTAINER_STYLE = {
position: 'absolute',
padding: '20px',
'background-color': '#fff',
'font-family': 'serif',
Expand Down

0 comments on commit b816cda

Please sign in to comment.