use tree-row-height for collection trees

dbus-notify
Zlatin Balevsky 2022-06-24 12:47:19 +01:00
parent c5ab49304e
commit c5580ae528
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ class CollectionTabView {
void initUI() {
int rowHeight = application.context.get("row-height")
int treeRowHeight = application.context.get("tree-row-height")
p = builder.panel {
gridLayout(rows : 3, cols: 1)
panel {
@ -138,7 +139,7 @@ class CollectionTabView {
scrollPane(constraints : BorderLayout.CENTER, border : etchedBorder()) {
itemsTree = new JTree(model.fileTreeModel)
itemsTree.setCellRenderer(new PathTreeRenderer())
tree(id: "items-tree", rowHeight : rowHeight, rootVisible : false, expandsSelectedPaths : true, itemsTree)
tree(id: "items-tree", rowHeight : treeRowHeight, rootVisible : false, expandsSelectedPaths : true, itemsTree)
}
}
}