mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5801 (Cover in book info pane is cut off)
This commit is contained in:
parent
129cd02292
commit
a3219557b1
@ -61,7 +61,7 @@ class BookInfoDisplay(QWidget):
|
|||||||
pixmap = self.pixmap()
|
pixmap = self.pixmap()
|
||||||
pwidth, pheight = pixmap.width(), pixmap.height()
|
pwidth, pheight = pixmap.width(), pixmap.height()
|
||||||
width, height = fit_image(pwidth, pheight,
|
width, height = fit_image(pwidth, pheight,
|
||||||
pwidth, self.statusbar_height-12)[1:]
|
pwidth, self.statusbar_height-20)[1:]
|
||||||
self.setMaximumHeight(height)
|
self.setMaximumHeight(height)
|
||||||
try:
|
try:
|
||||||
aspect_ratio = pwidth/float(pheight)
|
aspect_ratio = pwidth/float(pheight)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user