From 7ffcae3dd29468fe5437af8ee43c7baa420b906b Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 2 Jun 2020 17:22:54 +0200 Subject: [PATCH] Use WebView's scrolling for now --- src/qml/EntryPage.qml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/qml/EntryPage.qml b/src/qml/EntryPage.qml index 3d03fce8..eca1ce59 100644 --- a/src/qml/EntryPage.qml +++ b/src/qml/EntryPage.qml @@ -27,26 +27,21 @@ import org.kde.kirigami 2.12 as Kirigami import org.kde.alligator 1.0 -Kirigami.ScrollablePage { +Kirigami.Page { id: page property QtObject entry - property var content: "" + page.entry.content + ""; + property var content: "" + page.entry.content + ""; title: entry.title WebView { id: webView - width: page.width + anchors.fill: parent Component.onCompleted: { loadHtml(page.content, page.entry.baseUrl) } - onLoadingChanged: { - runJavaScript("document.documentElement.scrollHeight", function(result) { - webView.height = result * 1.025 - }) - } } } \ No newline at end of file