mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for edit widget placement problem
described in https://www.mobileread.com/forums/showthread.php?p=4390503#post4390503
This commit is contained in:
parent
32baf23f21
commit
c3acf05664
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user