diff options
Diffstat (limited to 'components/mailviewer/contents/ui/HtmlContent.qml')
-rw-r--r-- | components/mailviewer/contents/ui/HtmlContent.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/mailviewer/contents/ui/HtmlContent.qml b/components/mailviewer/contents/ui/HtmlContent.qml index 057fb096..53a02cc5 100644 --- a/components/mailviewer/contents/ui/HtmlContent.qml +++ b/components/mailviewer/contents/ui/HtmlContent.qml | |||
@@ -36,7 +36,10 @@ Item { | |||
36 | anchors.fill: parent | 36 | anchors.fill: parent |
37 | Component.onCompleted: loadHtml(content, "file:///") | 37 | Component.onCompleted: loadHtml(content, "file:///") |
38 | onContentsSizeChanged: { | 38 | onContentsSizeChanged: { |
39 | root.contentHeight = contentsSize.height; | 39 | //Resizing pixel by pixel causes some mails to grow indefinitely |
40 | if (contentsSize.height >= root.contentHeight + 5) { | ||
41 | root.contentHeight = contentsSize.height | ||
42 | } | ||
40 | } | 43 | } |
41 | onLoadingChanged: { | 44 | onLoadingChanged: { |
42 | if (loadRequest.status == WebEngineLoadRequest.LoadFailedStatus) { | 45 | if (loadRequest.status == WebEngineLoadRequest.LoadFailedStatus) { |