mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04: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
@ -105,6 +105,9 @@ class _Canvas(QGraphicsRectItem):
|
||||
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…
x
Reference in New Issue
Block a user