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

Need suggestion to Hide Scrollbar on Webview #270

Open
fionicholas opened this issue Dec 11, 2023 · 3 comments
Open

Need suggestion to Hide Scrollbar on Webview #270

fionicholas opened this issue Dec 11, 2023 · 3 comments

Comments

@fionicholas
Copy link

Hi @jnschulze ,i have implement the webview windows, but i need to hide the scrollbar on Web view

Any suggestion from you guys, for hide the scrollbar ?

Screenshot 2023-12-11 092329
@joeljoy
Copy link

joeljoy commented Dec 15, 2023

Were you able to find any method?

@dhola-hardik
Copy link

Try this

<!DOCTYPE html>
<html>

<head>
    <title>Camera Access Demo</title>
    <style>
        body {
            margin: 0;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        #camera {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

@kuangye89757
Copy link

webViewController.addScriptToExecuteOnDocumentCreated(
"""
document.addEventListener('DOMContentLoaded', () => {
document.querySelector('body').style.overflow='scroll';
var style=document.createElement('style');
style.type='text/css';
style.innerHTML='::-webkit-scrollbar{display:none}';
document.getElementsByTagName('body')[0].appendChild(style)});
"""
);

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

4 participants