question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content cut off when printing

See original GitHub issue

I have a table which contains only one colum. I draw speech bubbles in it, similar to Whatsapp. Now I have

responsive: 'scroll'

and

overrides: { MUIDataTable: { responsiveScroll: { maxHeight: '100%' } } }

set.

Unfortunately, when I press on Print, a part is cut off. If I print the page with CTRL + P, it works, but the rest of the UI is on the paper.

Here is a photo (with button): Here is a photo (CTRL + P):

I suspect, when printing with the button, the virtual page is not as big as the content. How can I change that?

Tech Version
Material-UI 3.9.2
MUI-datatables 2.0.0-beta.56
React 16.8.3
browser Safari / Chrome

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
andrewrainscommented, Mar 9, 2019

Also seeing this issue. When I had the table option of Responsive: ‘stacked’ it printed all rows. Now that I have it as ‘scroll’ (because it’s a better view on mobile), only the first 20 rows are printing and the rest cut off where the container has not expanded vertically.

0reactions
gabrielliwerantcommented, Mar 5, 2020

I have to close this. Printing is dictated by styling. Default styles seem to work correctly. If there’s a bug, I need an issue with specific instructions and a minimal codesandbox example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my printer cuts off the bottom of the page?
If your printer cuts off bottom of the page, ensure that the printing format matches the paper size, manually configure the page, ...
Read more >
Bottom of page cut off when printing - HP Support Community
Solved: When I print anything (PDF, web page) or use my printer's scanner to copy anything, the bottom of the page is cut...
Read more >
Printed pages are cut off when printing from email or web brower
Printed pages are cut off when printing from email or web brower · 1. Open the Printers Folder. · 2. Right-click on the...
Read more >
css - print stylesheet, one page prints and cuts off remaining text
In print.css, set overflow: visible instead of overflow: auto on div#content . That fixed it for me in Firefox at least.
Read more >
How to fix HTML elements being cut off when printing
This is caused by having too many SSH keys added to your keyring or ssh-agent. Your ssh-agent will throw all keys against a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found