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

Hide scrollbar #1159

Open
Pixelous opened this issue Sep 20, 2021 · 4 comments
Open

Hide scrollbar #1159

Pixelous opened this issue Sep 20, 2021 · 4 comments

Comments

@Pixelous
Copy link

Hi,

Can you please add an option to hide scrollbar?

Or do you recommend to use open/close events to add overflow: hidden to body?

@sachinchoolur
Copy link
Owner

For now, you can use the below CSS to hide the scrollbar.

.lg-on {
    overflow: hidden;
}

I'll add an option to hide the scrollbar as we've received a lot of requests in the past

@grenzecho
Copy link

Awesome! This should be included by default IMO :-)

@ozil07
Copy link

ozil07 commented May 19, 2022

why doesn't hideScrollbar work?

hideScrollbar

@sachinchoolur
Copy link
Owner

Hey @Pixelous,

It works only with version 2.5.0-beta.4.
I forgot to mention this on the docs. I'll update it

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

4 participants