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

How to hide scrollbars on print? #628

Closed
dannybeckett opened this issue Apr 20, 2024 · 3 comments
Closed

How to hide scrollbars on print? #628

dannybeckett opened this issue Apr 20, 2024 · 3 comments

Comments

@dannybeckett
Copy link

dannybeckett commented Apr 20, 2024

Describe the bug
I am trying to hide the scrollbars from my print stylesheet like so:

@media print {
    div.os-scrollbar,
    ::-webkit-scrollbar
    {
        display: none !important;
    }
}

To Reproduce
This works the first time you hit Print, but the 2nd time you hit Print it shows the scrollbar slightly, and by the 3rd time you hit Print the scrollbar is fully showing again.

Expected behavior
Scrollbar should not show when the page is printed, no matter how many times you press Print

Environment

  • Windows 11 22H2 - build 22621.3155
  • Google Chrome - 124.0.6367.60 (Official Build) (64-bit) (cohort: M124 Rollout)

Additional context

Thanks a lot! 😃

@KingSora
Copy link
Owner

Good day @dannybeckett

I've published v2.7.3 which should hide the scrollbars when printing. I hope it works :)

@dannybeckett
Copy link
Author

@KingSora Beautiful work!! I am once again very impressed - thank you so much! 🎉

@KingSora
Copy link
Owner

Glad I could help! :)

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

No branches or pull requests

2 participants