mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-31 08:04:49 +01:00
Book list: Do not let the default layout have any column wider than 350 pixels
This commit is contained in:
parent
78e4e41b7e
commit
129cd02292
1 changed files with 2 additions and 1 deletions
|
|
@ -292,7 +292,8 @@ def get_default_state(self):
|
|||
old_state['column_positions'][name] = i
|
||||
if name != 'ondevice':
|
||||
old_state['column_sizes'][name] = \
|
||||
max(self.sizeHintForColumn(i), h.sectionSizeHint(i))
|
||||
min(350, max(self.sizeHintForColumn(i),
|
||||
h.sectionSizeHint(i)))
|
||||
if name == 'timestamp':
|
||||
old_state['column_sizes'][name] += 12
|
||||
return old_state
|
||||
|
|
|
|||
Loading…
Reference in a new issue