mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:53:40 +02:00
...
This commit is contained in:
parent
8225f37286
commit
7599e3c6b7
1 changed files with 2 additions and 1 deletions
|
|
@ -359,7 +359,8 @@ def calculate_margins(self, prefs):
|
|||
def __call__(self, painter, rect, color_theme, title_block, subtitle_block, footer_block):
|
||||
painter.fillRect(rect, self.color1)
|
||||
top = title_block.position.y + 10
|
||||
height = title_block.height + subtitle_block.height + subtitle_block.line_spacing // 2 + title_block.leading
|
||||
extra_spacing = subtitle_block.line_spacing // 2 if subtitle_block.line_spacing else title_block.line_spacing // 3
|
||||
height = title_block.height + subtitle_block.height + extra_spacing + title_block.leading
|
||||
right = rect.right() - self.hmargin
|
||||
width = right - self.hmargin
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue