This commit is contained in:
Kovid Goyal 2010-04-17 20:41:58 +05:30
parent ec9e1b825c
commit a1636eb24e

View file

@ -626,6 +626,11 @@ def __init__(self, listener, opts, actions, parent=None):
self.status_bar.tag_view_button.toggle()
self._add_filesystem_book = Dispatcher(self.__add_filesystem_book)
v = self.library_view
if v.model().rowCount(None) > 1:
v.resizeRowToContents(0)
height = v.rowHeight(0)
self.library_view.verticalHeader().setDefaultSectionSize(height)
def resizeEvent(self, ev):