summaryrefslogtreecommitdiffstats
path: root/framework/qml/TreeView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 10:02:31 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 11:08:29 -0600
commite57b4eb261e178ed028ed9561b434a777fa549c1 (patch)
tree5679c5be86b14e9e2c60d0a3709bef0623a40cc0 /framework/qml/TreeView.qml
parent1ca05b0bc78c8f17dda7a4026ab3983a07a25be1 (diff)
downloadkube-e57b4eb261e178ed028ed9561b434a777fa549c1.tar.gz
kube-e57b4eb261e178ed028ed9561b434a777fa549c1.zip
Fixed delegate size
Diffstat (limited to 'framework/qml/TreeView.qml')
-rw-r--r--framework/qml/TreeView.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml
index 5dc05f3a..c73ffe7d 100644
--- a/framework/qml/TreeView.qml
+++ b/framework/qml/TreeView.qml
@@ -62,8 +62,8 @@ FocusScope {
62 left: parent.left 62 left: parent.left
63 right: parent.right 63 right: parent.right
64 } 64 }
65 implicitHeight: __listView.contentItem.height 65 implicitHeight: __listView.contentItem.height + 2
66 height: __listView.contentItem.height 66 height: implicitHeight
67 focus: true 67 focus: true
68 68
69 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff 69 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
@@ -161,7 +161,8 @@ FocusScope {
161 property bool isActive: root.activeIndex === treeView.__model.mapRowToModelIndex(styleData.row) 161 property bool isActive: root.activeIndex === treeView.__model.mapRowToModelIndex(styleData.row)
162 162
163 height: Kube.Units.gridUnit * 1.5 163 height: Kube.Units.gridUnit * 1.5
164 width: parent.width 164 //FIXME This is the only way I could find to get the correct width. parent.width is way to wide
165 width: parent.parent.parent.width
165 color: Kube.Colors.textColor 166 color: Kube.Colors.textColor
166 167
167 Rectangle { 168 Rectangle {