-
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
Possibility to have the scrollbar disabled instead of hidden/removed #84
Comments
Yeah, I guess this is a bit annoying for older versions of Windows and Macs that don't have floating scrollbars. If it really bothers you, you can just remove the Only caveat is that the page will be "scrollable" while the picker is open. If you have an alternate way of disabling the scrolling, please do share :) |
Well, not just old versions; I'm on Chrome in Windows 8 (standalone desktop mode). Yeah, I thought of the scrollability the second I read you say remove I'll look into it. I know that bootstrap-modal do it, probably with JS. |
It is possible with CSS.See this fiddle I just created. The CSS to the body be added when the modal is to be shown: position: fixed !important;
overflow: scroll !important;
width: 100%; The catch:As you can see, it looks like the GitHub ribbon jumps. What's happening is that the |
Another solution would be still set to add |
Oh, I actually think the second solution is perfect! I tried it out and seems to give the best cross-browser results. I'll adjust the styling accordingly. Thanks! |
Perfect, or almost perfect? :) |
Yeah, I haven't quite tested it out on IE yet.. But Firefox on Mac also has fixed sidebars and it seems alright with this: http://codepen.io/anon/full/uAvnK Better than before for sure.. |
So I came back to this with v3, and the all round best solution seems to be to keep the double scrollbars. This avoids the page width from changing each time it opens. There’s always the flexibility, for anyone who doesn’t want the double scrollbars, to add |
The only reason why I wouldn't use this yet is because it's a bit jarring how the width of the page just. If the page's scrollbar was disabled instead of hidden/removed then it would be far easier to appreciate the nice animation from the bottom :)
The text was updated successfully, but these errors were encountered: