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 /framework/qml/ListView.qml | |
parent | 89231902b7fa7d8c9143ebc775dc25013294f6a4 (diff) | |
download | kube-12f7ce92376ffcafdadc1078d81cd1a8d8fb0661.tar.gz kube-12f7ce92376ffcafdadc1078d81cd1a8d8fb0661.zip |
Keep the delegate full width without scrollbar.
Diffstat (limited to 'framework/qml/ListView.qml')
-rw-r--r-- | framework/qml/ListView.qml | 3 |
1 files changed, 2 insertions, 1 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 |