Don't shrink constant-width columns

This commit is contained in:
DevilXD committed 2022-01-11 17:31:58 +01:00
1 parent e0868c5fa7
commit 7f685dd8a4
1 file changed
+2
+2
View File
@@ -596,6 +596,8 @@ class ChannelList:
iids = self._table.get_children() iids = self._table.get_children()
if iids: # table needs to have at least one item if iids: # table needs to have at least one item
for column in columns: for column in columns:
if column in self._const_width:
continue
width = max(self._measure(self._table.set(i, column)) for i in iids) width = max(self._measure(self._table.set(i, column)) for i in iids)
self._table.column(column, minwidth=width, width=width) self._table.column(column, minwidth=width, width=width)
self._redraw() self._redraw()