mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #2049929 [Private bug](https://bugs.launchpad.net/calibre/+bug/2049929)
This commit is contained in:
commit
c52246b54f
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user