Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: override default iframe border so it's really hidden #479

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

dpramar
Copy link

@dpramar dpramar commented Sep 17, 2020

The issue is that iframes have a default border of 2px, so when printing it's adding a 4x4px at the bottom of the page that in pages using 100vh is an issue because it adds scroll.

iframes default styles:

image

After printing, at the bottom of the page:

image

After fix:

image

@coveralls
Copy link

coveralls commented Sep 17, 2020

Pull Request Test Coverage Report for Build 313

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 48.241%

Totals Coverage Status
Change from base Build 312: 0.0%
Covered Lines: 239
Relevant Lines: 363

💛 - Coveralls

@crabbly
Copy link
Owner

crabbly commented Sep 17, 2020

Hey David, thank you so much for helping with the library. Nice catch. I haven't seen this before.

We just released a new version today, v1.0.3. This change will get published to npm with the next version 1.0.4 by next week.

@crabbly crabbly merged commit b9a2938 into crabbly:master Sep 17, 2020
@crabbly
Copy link
Owner

crabbly commented Sep 19, 2020

@dpramar A new version with this change has been published to npm, v1.3.1
Thanks again for your help 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants