Fix layout of Canvas elements when there isn't enough space on the current page.

This commit is contained in:
Kovid Goyal 2007-10-13 15:57:37 +00:00
parent 9a83c2b796
commit cff18be4a1

View File

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