mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 05:50:19 +02:00
Disable web engine scrollbars
This commit is contained in:
parent
9baf518c6a
commit
e38075f7ba
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ Flickable {
|
|||
}
|
||||
|
||||
if (WebEngineView.LoadSucceededStatus === loadRequest.status) {
|
||||
//disable Chromium's scroll bars
|
||||
_webview.runJavaScript("document.body.style.overflow = 'hidden';");
|
||||
//calculate page height
|
||||
_webview.runJavaScript("document.body.scrollHeight;", function (i_actualPageHeight) {
|
||||
flick.contentHeight = Math.max(i_actualPageHeight, flick.height);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue