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 when popup opened #11

Open
ppc52776 opened this issue Jul 6, 2017 · 0 comments
Open

Hide scrollbar when popup opened #11

ppc52776 opened this issue Jul 6, 2017 · 0 comments

Comments

@ppc52776
Copy link

ppc52776 commented Jul 6, 2017

When using ngui/popup, the original web page can still be scrollable.
Is it possible to add this code when popup opened:
document.body.style.overflowY = 'hidden';
and add this code when popup closed:
document.body.style.overflowY = null;

@ppc52776 ppc52776 changed the title Hide scollbar when popup opened Hide scrollbar when popup opened Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant