Fixes #2049929 [Private bug](https://bugs.launchpad.net/calibre/+bug/2049929)
This commit is contained in:
Kovid Goyal 2024-01-20 08:14:14 +05:30
commit c52246b54f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,7 +86,7 @@ class UpdateEditorGeometry:
max_width = pin_view.horizontalScrollBar().geometry().width() max_width = pin_view.horizontalScrollBar().geometry().width()
else: else:
view = self.table_widget 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 # What we have to display might not fit. If so, adjust down
new_width = new_width if new_width < max_width else max_width new_width = new_width if new_width < max_width else max_width