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 the scroll behaviour #87

Open
clement-avasoft opened this issue Oct 17, 2023 · 1 comment
Open

Hide the scroll behaviour #87

clement-avasoft opened this issue Oct 17, 2023 · 1 comment

Comments

@clement-avasoft
Copy link

While rendering the web view inside the container, the scrollbar occupied most of the space, so I didn't want to display the scroll behavior. By default, there is no property provided to handle this. Any other options or suggestions would help me. Thanks in advance.

@SinyimZhi
Copy link
Collaborator

SinyimZhi commented Nov 20, 2023

@clement-avasoft
Firs of all, if you just want this options just for your own web pages you can try this

Remove horizontal scrollbar :<body style='overflow:scroll;overflow-x:hidden'>
Remove vertical scrollbar:<body style='overflow:scroll;overflow-y:hidden'>
Remove both: <body style='overflow:scroll;overflow-x:hidden;overflow-y:hidden'>

And if you want to effect all web pages, you can try excute js after load url like this
document.documentElement.style.overflow = 'hidden';

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

2 participants