Skip to content

Commit

Permalink
update html printable element to prevent issues with transform style
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Mar 23, 2018
1 parent 9b4386a commit 135cefa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "print-js",
"homepage": "http://printjs.crabbly.com",
"description": "A tiny javascript library to help printing from the web.",
"version": "1.0.33",
"version": "1.0.34",
"main": "dist/print.js",
"repository": "https://github.com/crabbly/Print.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/js/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
printableElement.appendChild(printElement.cloneNode(true))

// Add cloned element to DOM, to have DOM element methods available. It will also be easier to colect styles
printableElement.setAttribute('style', 'display:none;')
printableElement.setAttribute('style', 'height:0; overflow:hidden;')
printableElement.setAttribute('id', 'printJS-html')
printElement.parentNode.appendChild(printableElement)

Expand Down

0 comments on commit 135cefa

Please sign in to comment.