summaryrefslogtreecommitdiffstats
path: root/framework/qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml')
-rw-r--r--framework/qml/ListView.qml3
-rw-r--r--framework/qml/MailListView.qml2
2 files changed, 3 insertions, 2 deletions
diff --git a/framework/qml/ListView.qml b/framework/qml/ListView.qml
index eafa428d..52942b65 100644
--- a/framework/qml/ListView.qml
+++ b/framework/qml/ListView.qml
@@ -24,9 +24,10 @@ import org.kube.framework 1.0 as Kube
24ListView { 24ListView {
25 id: root 25 id: root
26 property Item mouseProxy: scrollHelper 26 property Item mouseProxy: scrollHelper
27 property int availableWidth: scrollBar.visible ? width - scrollBar.width: width
27 28
28 clip: true 29 clip: true
29 ScrollBar.vertical: Kube.ScrollBar {} 30 ScrollBar.vertical: Kube.ScrollBar { id: scrollBar }
30 31
31 Kube.ScrollHelper { 32 Kube.ScrollHelper {
32 id: scrollHelper 33 id: scrollHelper
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index f3e6a7a6..96cf30bc 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -152,7 +152,7 @@ FocusScope {
152 //Required for D&D 152 //Required for D&D
153 property var mail: model.mail 153 property var mail: model.mail
154 154
155 width: listView.width - Kube.Units.smallSpacing 155 width: listView.availableWidth
156 height: Kube.Units.gridUnit * 5 156 height: Kube.Units.gridUnit * 5
157 157
158 color: Kube.Colors.viewBackgroundColor 158 color: Kube.Colors.viewBackgroundColor