From 3f28c128ea0b0892609c0648128219832c92ad2a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 May 2010 11:49:46 -0600 Subject: [PATCH] Fix Tag Browser sizing issues with long searches --- src/calibre/gui2/main.ui | 27 ++++++++++++--------------- src/calibre/gui2/ui.py | 5 +++++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/calibre/gui2/main.ui b/src/calibre/gui2/main.ui index 73cee4a061..4c9351909e 100644 --- a/src/calibre/gui2/main.ui +++ b/src/calibre/gui2/main.ui @@ -306,12 +306,6 @@ - - - 256 - 16777215 - - true @@ -354,12 +348,12 @@ - - Manage user categories + + Create, edit, and delete user categories + + + Manage &user categories - - Create, edit, and delete user categories - @@ -369,7 +363,10 @@ - Restrict display to: + &Restrict display to: + + + search_restriction @@ -381,9 +378,9 @@ 0 - - Books display will be restricted to those matching the selected saved search - + + Books display will be restricted to those matching the selected saved search + diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index d5f50b92b8..12f620532e 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -603,6 +603,11 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): self.library_view.model().count_changed() + ########################### Tags Browser ############################## + self.search_restriction.setSizeAdjustPolicy(self.search_restriction.AdjustToMinimumContentsLengthWithIcon) + self.search_restriction.setMinimumContentsLength(10) + + ########################### Cover Flow ################################ self.cover_flow = None if CoverFlow is not None: