mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:23:16 +02:00
Fix layout of Canvas elements when there isn't enough space on the current page.
This commit is contained in:
parent
9a83c2b796
commit
cff18be4a1
1 changed files with 3 additions and 0 deletions
|
|
@ -105,6 +105,9 @@ def layout_block(self, block, x, y):
|
|||
self.layout_canvas(block, x, y)
|
||||
|
||||
def layout_canvas(self, canvas, x, y):
|
||||
if canvas.max_y + y > self.max_y:
|
||||
self.is_full = True
|
||||
return
|
||||
canvas.setParentItem(self)
|
||||
canvas.setPos(x, y)
|
||||
canvas.has_content = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue