diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-10-30 16:09:41 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-10-30 16:09:41 +0100 |
commit | cae9227918f35c2774f64daffaa83ea971cfbb95 (patch) | |
tree | d1173b4994cce6a0410a79fdf6c9199a88a44b74 | |
parent | e4040f1c10bfd5df379fd2d3c2b278e099b9e72f (diff) | |
download | kube-cae9227918f35c2774f64daffaa83ea971cfbb95.tar.gz kube-cae9227918f35c2774f64daffaa83ea971cfbb95.zip |
mailviewer: adjust margins and spacing
-rw-r--r-- | components/mailviewer/qml/MailViewer.qml | 5 | ||||
-rw-r--r-- | components/package/contents/ui/MailViewer.qml | 4 | ||||
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/components/mailviewer/qml/MailViewer.qml b/components/mailviewer/qml/MailViewer.qml index 265c5bee..0f7efca2 100644 --- a/components/mailviewer/qml/MailViewer.qml +++ b/components/mailviewer/qml/MailViewer.qml | |||
@@ -21,9 +21,8 @@ import QtQuick 2.4 | |||
21 | Item { | 21 | Item { |
22 | id: root | 22 | id: root |
23 | property alias rootIndex: visualModel.rootIndex | 23 | property alias rootIndex: visualModel.rootIndex |
24 | property bool debug: true | 24 | property bool debug: false |
25 | height: partListView.height + 50 | 25 | height: partListView.height |
26 | width: parent.width * 0.9 | ||
27 | 26 | ||
28 | MailDataModel { | 27 | MailDataModel { |
29 | id: visualModel | 28 | id: visualModel |
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml index 95b03b1b..eb97b7d9 100644 --- a/components/package/contents/ui/MailViewer.qml +++ b/components/package/contents/ui/MailViewer.qml | |||
@@ -28,7 +28,7 @@ Item { | |||
28 | id: root | 28 | id: root |
29 | property variant message; | 29 | property variant message; |
30 | property string html; | 30 | property string html; |
31 | property int desiredHeight: topPartLoader.height + newMailViewer.height + 50; | 31 | property int desiredHeight: topPartLoader.height + newMailViewer.height |
32 | 32 | ||
33 | clip: true | 33 | clip: true |
34 | 34 | ||
@@ -39,6 +39,7 @@ Item { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | //BEGIN old mail viewer | 41 | //BEGIN old mail viewer |
42 | |||
42 | MessagePartTree { | 43 | MessagePartTree { |
43 | id: topPartLoader | 44 | id: topPartLoader |
44 | anchors.top: newMailViewer.bottom | 45 | anchors.top: newMailViewer.bottom |
@@ -89,4 +90,5 @@ Item { | |||
89 | message: root.message | 90 | message: root.message |
90 | } | 91 | } |
91 | html: messageParser.html | 92 | html: messageParser.html |
93 | |||
92 | } | 94 | } |
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 73dedc7e..d7bd4cc8 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -198,7 +198,7 @@ Item { | |||
198 | 198 | ||
199 | anchors.bottom: parent.bottom | 199 | anchors.bottom: parent.bottom |
200 | 200 | ||
201 | height: Kirigami.Units.gridUnit * 3 | 201 | height: Kirigami.Units.gridUnit * 2 |
202 | width: parent.width | 202 | width: parent.width |
203 | 203 | ||
204 | Text { | 204 | Text { |