-
Notifications
You must be signed in to change notification settings - Fork 33
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
Unnecessary horizontal scroll bar on Windows #9
Comments
I was able to correct the behavior by setting the following CSS rule in my app: .ReactVirtualized__Grid__innerScrollContainer[style] {
width: 100% !important;
} @techniq, can we somehow set that in the library or do you think it's the wrong approach? So far I've seen it working without any downsides. |
@mastertinner hmm, this concerns me a little (the |
Yes, the |
@mastertinner I'm normally on a Mac so I haven't noticed it, but I just tried on a Windows machine and was able to reproduce. One workaround that seemed to work for me using your codesandbox example (at least using Chrome's devtools to override the styles) was to change In fact, when I look at this on my Mac in Chrome, I see these being set: but on a Windows machine in Chrome, they are not (on another machine, or I would include a screenshot). Not sure why this is, but it appears to be the culprit and the discrepancy between OSes. |
@mastertinner reading through MultiGrid is where this is set (I believe). Not sure if Windows is producing a different result, but I think this might be a good place to look. I'm under some deadlines right now (and have mostly moved to using my mui-table as I typically do not render large tables and needed more css/dom capability that react-virtualized made difficult. If you can find a good solution, I will definitely help you get it merged in, but my bandwidth is pretty limited at the moment (and sadly, has been for some time). |
@mastertinner We are also on react-virtualized 0.9.18 but there have been some changes to MultiGrid in later versions, particularly bvaughn/react-virtualized#1040. Might want to try to upgrade the dependency and see if this helps. |
@mastertinner Have any luck? |
I believe that this issue is caused by the |
Tables show an unnecessary horizontal scroll bar after scrolling vertically for a bit. This happens only on Windows (tested with Windows 10 and different browsers). I made a minimal example here that does show the behavior: https://codesandbox.io/s/v8z0lwvpj7
The same can be observed for some of the examples (e.g. https://techniq.github.io/mui-virtualized-table/?selectedKind=Basic&selectedStory=fixed%2Ffreeze%20row%28s%29&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel).
When visiting the site with any browser on Windows and then scrolling the table up and down a little, a horizontal scroll bar appears.
It seems to be happening mainly when scrolling back up after having scrolled down.
The text was updated successfully, but these errors were encountered: