Disable web engine scrollbars

This commit is contained in:
vladest 2017-08-28 16:27:33 +02:00
parent 9baf518c6a
commit e38075f7ba

View file

@ -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);
})