1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-04-27 10:34:53 +02:00

fix: change resize mode to interactive

This commit is contained in:
2025-11-28 18:04:58 +01:00
parent 61656d0ee8
commit d98db703a8
@@ -335,8 +335,7 @@ class BecLogTableView(QTableView):
def __init__(self, *args, max_message_width: int = 1000, **kwargs) -> None:
super().__init__(*args, **kwargs)
header = QHeaderView(Qt.Orientation.Horizontal, parent=self)
header.setSectionResizeMode(QHeaderView.ResizeMode.ResizeToContents)
header.setSectionResizeMode(2, QHeaderView.ResizeMode.Stretch)
header.setSectionResizeMode(QHeaderView.ResizeMode.Interactive)
header.setStretchLastSection(True)
header.setMaximumSectionSize(max_message_width)
self.setHorizontalHeader(header)