diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-11 15:45:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-11 15:45:03 +0100 |
commit | 12f7ce92376ffcafdadc1078d81cd1a8d8fb0661 (patch) | |
tree | 0a71d29753a60bbb01e19d5124d0ff99a6f02020 | |
parent | 89231902b7fa7d8c9143ebc775dc25013294f6a4 (diff) | |
download | kube-12f7ce92376ffcafdadc1078d81cd1a8d8fb0661.tar.gz kube-12f7ce92376ffcafdadc1078d81cd1a8d8fb0661.zip |
Keep the delegate full width without scrollbar.
-rw-r--r-- | framework/qml/ListView.qml | 3 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 2 |
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 | |||
24 | ListView { | 24 | ListView { |
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 |