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

getScrollbarWidth fails in Firefox under certain conditions #6937

Open
real-artswan opened this issue Feb 20, 2019 · 0 comments
Open

getScrollbarWidth fails in Firefox under certain conditions #6937

real-artswan opened this issue Feb 20, 2019 · 0 comments

Comments

@real-artswan
Copy link

I have an app where body height is 100vh and children fill the whole height, in this case "outer" element created by getScrollbarWidth is out of browser view port and it seems Firefox doesn't draw any scrollbars in it so inner and outer widths are the same.
I'm able to fix it by adding position absolute to the outer style:
outer.style.position = 'absolute';
Could somebody publish the fix to the npm, please? Or should I make a pull request?

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