1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-04-22 00:04:35 +02:00

fix: change resize mode to interactive

This commit is contained in:
2025-11-28 18:04:58 +01:00
committed by David Perl
parent 2e8f43fcac
commit a5db2dc340
@@ -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)