MatthewHerbst / react-to-print

Print React components in the browser. Supports Chrome, Safari, Firefox and EDGE
MIT License
2.06k stars 221 forks source link

Show All Content doesnt work for landscape and different browsers. #662

Closed RafaelCENG closed 10 months ago

RafaelCENG commented 10 months ago

I'm using Google Chrome. Portrait mode works perfectly with the scroll. Then on my print settings if I change to landscape shows only the first page. Also, I checked Safari and portrait mode shows only the first page too. Im using the !importan too.

    printedScrollContainer.style.overflow = "visible !important";
    printedScrollContainer.style.height = "fit-content !important";
RafaelCENG commented 10 months ago

Re-opened something weird is happening. Now it's not working again.

siaikin commented 10 months ago

Hello. Could you make a working example on Codesandbox or similar? The information obtained from your description is limited. You can use this demo https://github.com/gregnb/react-to-print#demo make your example.

RafaelCENG commented 10 months ago

Sorry for the delay probably time difference. Codesandbox I created a minimal reproduction. I used the same code I do in my case with a fast dump material ui table.

siaikin commented 10 months ago

Sorry for the delay probably time difference. Codesandbox I created a minimal reproduction. I used the same code I do in my case with a fast dump material ui table.

i modify your example. look this https://codesandbox.io/s/wizardly-boyd-p45qr4?file=/src/App.js.

RafaelCENG commented 10 months ago

Thanks, I have a break now. I will reply in a bit if it's working!

RafaelCENG commented 10 months ago

Worked thanks. Marking the reply as an answer.