From 3c5d0efe526475f3143a90f7807b35df59c39b52 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 6 Aug 2017 17:17:55 -0600 Subject: Fix html mail positioning This seems to fix that html mails get positioned at the end instead of the beginning. --- framework/qml/ConversationView.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index b1984121..85707300 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml @@ -80,9 +80,7 @@ FocusScope { //Position view so the last email begins on top of the view onContentHeightChanged: { //FIXME This doesn't work quite correctly when we have headers and footers in the listview and the mail loads to slowly and only one item to show. - listView.positionViewAtIndex(0, ListView.End) - //A futile attempt to fix the problem above - listView.returnToBounds() + listView.positionViewAtIndex(currentIndex, ListView.End) } Keys.onDownPressed: { -- cgit v1.2.3