-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ScrollPanel: Default scroll bars start to appear when zooming out with the browser #4660
Comments
@ThomDevine Can you post a screenshot or something to show the problem. I did the steps, but I cannot see the problem. |
I sure can, thanks for investigating! Both screenshots come from viewing the ScrollPanel doc page in Chrome. My Windows desktop zoom is set to 125%, which may affect how the issue presents; we've seen different desktop zoom levels affect browser zoom behavior before. |
Thanks for your screenshot. I will try to check later ^^ |
Hi @ThomDevine. I think I solved the problem. Ihave created a PR. |
Thanks @SoyDiego ! I laughed out loud when I saw what the fix was. It's the classic case of "99% of solving the problem is knowing where to look" 😄 |
haha no problem! happy to help :) |
Describe the bug
The further I shrink the browser zoom, the more some browser-default scrollbars appear in the ScrollPanel. Viewable on the ScrollPanel demo page.
While researching the issue to see if other scroll panel libraries are affected by it, I came across this one which had the same problem reported, and was able to fix it: sakhnyuk/rc-scrollbars#15 Their panel structure looks pretty similar to how PrimeReact's is built.
Reproducer
https://primereact.org/scrollpanel/
PrimeReact version
9.3.1
React version
17.x
Language
ES5
Build / Runtime
Vite
Browser(s)
Chrome 114, FIrefox 114
Steps to reproduce the behavior
On my machine, the bars start to appear at 80% as tiny strips, and keep "growing" the more I zoom out.
Expected behavior
Only the scroll bar styled by ScrollPanel should be displayed.
The text was updated successfully, but these errors were encountered: