diff --git a/tmtccmd/gui/cmd_select.py b/tmtccmd/gui/cmd_select.py index a2a764a5..442f0244 100644 --- a/tmtccmd/gui/cmd_select.py +++ b/tmtccmd/gui/cmd_select.py @@ -98,6 +98,14 @@ def on_item_expanded(self, _index: int): self.tree_view.resizeColumnToContents( CommandPathSelectWidget.DESCRIPTION_COLUMN ) + self.resize( + self.tree_view.sizeHintForColumn(CommandPathSelectWidget.NODE_NAME_COLUMN) + + self.tree_view.sizeHintForColumn( + CommandPathSelectWidget.DESCRIPTION_COLUMN + ) + + 40, + self.size().height(), + ) def select_path_clicked(self): selected_indexes = self.tree_view.selectedIndexes()