columns: also auto size thread and pid column on zoom change

This commit is contained in:
René Stadler 2011-11-06 13:19:55 +01:00 committed by Stefan Sauer
parent c2eddd8db4
commit 265cc8afdf

View file

@ -604,9 +604,12 @@ class ViewColumnManager (ColumnManager):
# Timestamp and log level columns are pretty much fixed size, so resize # Timestamp and log level columns are pretty much fixed size, so resize
# them back to default on zoom change: # them back to default on zoom change:
names = (TimeColumn.name,
LevelColumn.name,
PidColumn.name,
ThreadColumn.name)
for column in self.columns: for column in self.columns:
if column.name in (TimeColumn.name, if column.name in names:
LevelColumn.name):
self.size_column (column) self.size_column (column)
def size_column (self, column): def size_column (self, column):