Fix #5801 (Cover in book info pane is cut off)

This commit is contained in:
Kovid Goyal 2010-06-11 22:38:51 -06:00
parent 129cd02292
commit a3219557b1

View File

@ -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)