View Single Post
Posts: 16 | Thanked: 23 times | Joined on Jan 2016
#2553
Originally Posted by Markkyboy View Post
Kneeli - your code shown for HtmlViewer.qml does not match what I have. I'm on SFOS 2.2.0.29 - which version are you using?
is in function
Code:
function setHtml(html) {
}
The sailfish mail app, does show many html mails in desktop view. Sometimes there even not zoom able, so unreadable at all.

In this function jolla-email does count the viewport, which seems to be buggy sincs version 1

I just defined a fix viewport with 300, which make nearly all html emails readable and shows them up in mobile view if there responsive.

Just replace this function with:
Code:
    function setHtml(html) {
        htmlBody = html
            experimental.customLayoutWidth = 300
        webView.loadHtml(htmlBody, "file:///usr/share/jolla-email")
        onScreen = true
    }
 

The Following User Says Thank You to kneeli For This Useful Post: