From 5a1cf7d87956e0e734584b18d7341688acc4590a Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 31 Dec 2010 18:13:58 +0000 Subject: [PATCH] Try again with the width of the not found box --- src/calibre/gui2/tag_view.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tag_view.py b/src/calibre/gui2/tag_view.py index e88dbd8927..bdaa9bba9b 100644 --- a/src/calibre/gui2/tag_view.py +++ b/src/calibre/gui2/tag_view.py @@ -1289,10 +1289,14 @@ class TagBrowserWidget(QWidget): # {{{ model.show_item_at_path(self.current_find_position, box=True) elif self.item_search.text(): self.not_found_label.setVisible(True) - width = self.item_search.width() + if self.tags_view.verticalScrollBar().isVisible(): + sbw = self.tags_view.verticalScrollBar().width() + else: + sbw = 0 + width = self.width() - 8 - sbw height = self.not_found_label.heightForWidth(width) + 20 self.not_found_label.resize(width, height) - self.not_found_label.move(self.search_button.width()/3, 10) + self.not_found_label.move(4, 10) self.not_found_label_timer.start(2000) def not_found_label_timer_event(self):