Fix DocumentLayoutException when creating a document with more than one page

This commit is contained in:
Emanuele Guastella
2022-08-20 14:17:52 +02:00
parent 6cced3c143
commit c71bb3ea59
+1 -1
View File
@@ -96,7 +96,7 @@ namespace QuestPDF.Elements
var availableHeight = availableSpace.Height - topOffset;
if (availableHeight <= 0)
if (availableHeight < 0)
break;
var itemSpace = new Size(availableSpace.Width, availableHeight);