From a1636eb24e6178066650e36adcea1e024f89505a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Apr 2010 20:41:58 +0530 Subject: [PATCH] ... --- src/calibre/gui2/ui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 52cea882fb..54a7a26d5e 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -626,6 +626,11 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): 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):