-
Notifications
You must be signed in to change notification settings - Fork 339
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
Implementation does not reserve the scrollbar width #9
Comments
thanks for the code - happy for you to create the PR. Once you create it, I'll try to have it reviewed quickly. |
You are welcome. |
@FL3NKEY thanks for the recommendation. We want to use the library for a large React app, so abstraction is a minimum requirement. However, this is not possible due to the fixed CSS class names. This means that the library cannot simply be replaced later if problems arise. I'm on my way to the React Conference in Amsterdam/NL. When I get back I'll take care of the PR. |
Can't wait for the PR. I need this as well! :) |
@martinkutter updated, check out 🤗 |
Sorry for the delay. Let me look at the solution from @FL3NKEY next week and I'll get back to you. |
@martinkutter 👍 let me know how it goes - if you end up not putting a PR through, I'll adapt your suggestion and create a PR for body-scroll-lock. |
@martinkutter what's the problem using my library? |
@FL3NKEY As I mentioned before, we use this library in a large React application based on plugins. For example, a normal use case is that one component activates the scrolllock, then a second component is mounted, which also activates the scrolllock. If the first component deactivates the scrolllock, it is not considered that it is still needed by the second component. So I decided to continue using this library, which can handle it correctly. |
@martinkutter oh, i got it, work at that 🤗 |
@martinkutter thanks I've reviewed it and no problems with the delay 👍 |
PR #14 pending minor change and then will merge |
Thank you for this easy to use library.
Unfortunately, it doesn't quite fit our application.
The content of our site is centered. If the user opens a popup and we execute "disableBodyScroll", the scrollbar is removed. This makes the body slightly wider than before and the centered elements in the background jump to the right.
In this case it would make sense to reserve the space for the scrollbar. Could the following solution, possibly optional, fit to the library? Then I would create a PullRequest.
The text was updated successfully, but these errors were encountered: