diff options
Diffstat (limited to 'components/package/contents/ui/WebView.qml')
-rw-r--r-- | components/package/contents/ui/WebView.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/components/package/contents/ui/WebView.qml b/components/package/contents/ui/WebView.qml index bb6a8df7..a71b42af 100644 --- a/components/package/contents/ui/WebView.qml +++ b/components/package/contents/ui/WebView.qml | |||
@@ -31,11 +31,20 @@ Item { | |||
31 | console.warn("Error is ", loadRequest.errorString); | 31 | console.warn("Error is ", loadRequest.errorString); |
32 | console.warn("Status is ", loadRequest.status); | 32 | console.warn("Status is ", loadRequest.status); |
33 | } | 33 | } |
34 | Component.onCompleted: loadHtml(content, "file:///") | 34 | Component.onCompleted: { |
35 | loadHtml(content, "file:///") | ||
36 | } | ||
35 | onContentsSizeChanged: { | 37 | onContentsSizeChanged: { |
36 | root.contentWidth = contentsSize.width | 38 | root.contentWidth = contentsSize.width |
37 | root.contentHeight = contentsSize.height | 39 | root.contentHeight = contentsSize.height |
38 | } | 40 | } |
41 | activeFocusOnPress: false | ||
42 | settings { | ||
43 | autoLoadImages: true | ||
44 | javascriptCanOpenWindows: false | ||
45 | javascriptEnabled: true | ||
46 | localStorageEnabled: false | ||
47 | } | ||
39 | } | 48 | } |
40 | onContentChanged: { | 49 | onContentChanged: { |
41 | htmlView.loadHtml(content, "file:///"); | 50 | htmlView.loadHtml(content, "file:///"); |