mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
IGN:Fix height calculation for LRF viewer
This commit is contained in:
parent
667804bd9f
commit
14b0bfdc96
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ def parsed(self):
|
|||
if not self.renderer.aborted and self.renderer.lrf is not None:
|
||||
width, height = self.renderer.lrf.device_info.width, \
|
||||
self.renderer.lrf.device_info.height
|
||||
hdelta = self.viewer_page.size().height() - self.graphics_view.size().height()
|
||||
hdelta = self.tool_bar.height()+3
|
||||
|
||||
from PyQt4.QtGui import QScrollBar
|
||||
s = QScrollBar(self)
|
||||
scrollbar_adjust = min(s.width(), s.height())
|
||||
|
|
|
|||
Loading…
Reference in a new issue