From c3acf05664a44ebd479ae0c78d3548a1840e594c Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 19 Jan 2024 21:52:41 +0000 Subject: [PATCH] Fix for edit widget placement problem described in https://www.mobileread.com/forums/showthread.php?p=4390503#post4390503 --- src/calibre/gui2/library/delegates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/delegates.py b/src/calibre/gui2/library/delegates.py index 3fdac99deb..dca1b3bf10 100644 --- a/src/calibre/gui2/library/delegates.py +++ b/src/calibre/gui2/library/delegates.py @@ -86,7 +86,7 @@ class UpdateEditorGeometry: max_width = pin_view.horizontalScrollBar().geometry().width() else: view = self.table_widget - max_width = view.horizontalScrollBar().geometry().width() - view.verticalHeader().width() + max_width = view.rect().width() - view.verticalHeader().width() # What we have to display might not fit. If so, adjust down new_width = new_width if new_width < max_width else max_width