Electron: Disable scrollbar on webview

Created on 21 Nov 2015  路  3Comments  路  Source: electron/electron

Seems there's no way to disable scrollbar before dom-ready.
This makes the UI a little ugly.

Another thing will improve UX is page zoom settings before page loaded.

All 3 comments

I suggest bringing this up in Chromium's issues list, since we need Chromium to implement it before we can add the feature, and if Chromium team doesn't want to add it, there will be no way for us to work on it anyway.

Register "dom-ready" event on a webview element
Then, implement function to insert a CSS styles, something like:
myWebView.insertCSS('html,body{ overflow: hidden !important; }');

myWebView.insertCSS('html,body{ overflow: hidden !important; }');

Solves it. In my case I just opened a style tag and pasted html,body{ overflow: hidden !important; } and it worked like a charm. Thanks @mnicic.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feross picture feross  路  3Comments

rhnorskov picture rhnorskov  路  3Comments

etiktin picture etiktin  路  3Comments

tenry92 picture tenry92  路  3Comments

mccxiv picture mccxiv  路  3Comments