Skip to content

Commit

Permalink
Merge pull request #479 from dpramar/fix-iframe-border
Browse files Browse the repository at this point in the history
Override default iframe border so it's really hidden
  • Loading branch information
crabbly authored Sep 17, 2020
2 parents 3e262b9 + a2c90e7 commit b9a2938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default {
printFrame.setAttribute('style', 'width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0')
} else {
// Hide the iframe in other browsers
printFrame.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute;')
printFrame.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute; border: 0')
}

// Set iframe element id
Expand Down

0 comments on commit b9a2938

Please sign in to comment.