diff --git a/package.json b/package.json index 9ec2b22..7af4a85 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/js/html.js b/src/js/html.js index 9fb8b32..049cec0 100644 --- a/src/js/html.js +++ b/src/js/html.js @@ -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)