From e57b4eb261e178ed028ed9561b434a777fa549c1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 26 Jul 2017 10:02:31 -0600 Subject: Fixed delegate size --- framework/qml/TreeView.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/qml') 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 { left: parent.left right: parent.right } - implicitHeight: __listView.contentItem.height - height: __listView.contentItem.height + implicitHeight: __listView.contentItem.height + 2 + height: implicitHeight focus: true verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff @@ -161,7 +161,8 @@ FocusScope { property bool isActive: root.activeIndex === treeView.__model.mapRowToModelIndex(styleData.row) height: Kube.Units.gridUnit * 1.5 - width: parent.width + //FIXME This is the only way I could find to get the correct width. parent.width is way to wide + width: parent.parent.parent.width color: Kube.Colors.textColor Rectangle { -- cgit v1.2.3