diff options
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/TreeView.qml | 7 |
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 { |