Fix TreeView nesting for ColumnLayout.
This commit is contained in:
@@ -43,11 +43,26 @@ SplitView {
|
||||
SplitView.preferredWidth: 200
|
||||
SplitView.maximumWidth: 250
|
||||
|
||||
StackLayout {
|
||||
anchors.fill: parent
|
||||
ColumnLayout {
|
||||
spacing: 2
|
||||
Rectangle {
|
||||
width: navigationView.width
|
||||
height: breadCrumb.height + 5
|
||||
|
||||
color: RustColors.explorer_text
|
||||
Text {
|
||||
id: breadCrumb
|
||||
text: clideTreeView.rootDirectory
|
||||
elide: Text.ElideLeft
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
}
|
||||
|
||||
ClideTreeView {
|
||||
id: clideTreeView
|
||||
onFileClicked: path => root.projectDir = path
|
||||
width: navigationView.width
|
||||
height: navigationView.height
|
||||
|
||||
// Path to the directory opened in the file explorer.
|
||||
rootDirectory: root.projectDir
|
||||
|
||||
Reference in New Issue
Block a user