From 135cefa677f9b8176cae69ad64f16c8f172716fd Mon Sep 17 00:00:00 2001 From: Rodrigo Vieira Date: Fri, 23 Mar 2018 16:25:34 -0400 Subject: [PATCH] update html printable element to prevent issues with transform style --- package.json | 2 +- src/js/html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)