summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-06 17:17:55 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-06 17:17:55 -0600
commit3c5d0efe526475f3143a90f7807b35df59c39b52 (patch)
treeab1b77e8f933659f7a3c593e1b7659c56bb42537
parent1e6c5ff903cdb33f12466628bacde9e37e0a7065 (diff)
downloadkube-3c5d0efe526475f3143a90f7807b35df59c39b52.tar.gz
kube-3c5d0efe526475f3143a90f7807b35df59c39b52.zip
Fix html mail positioning
This seems to fix that html mails get positioned at the end instead of the beginning.
-rw-r--r--framework/qml/ConversationView.qml4
1 files changed, 1 insertions, 3 deletions
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 {
80 //Position view so the last email begins on top of the view 80 //Position view so the last email begins on top of the view
81 onContentHeightChanged: { 81 onContentHeightChanged: {
82 //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. 82 //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.
83 listView.positionViewAtIndex(0, ListView.End) 83 listView.positionViewAtIndex(currentIndex, ListView.End)
84 //A futile attempt to fix the problem above
85 listView.returnToBounds()
86 } 84 }
87 85
88 Keys.onDownPressed: { 86 Keys.onDownPressed: {