Fix DocumentLayoutException when creating a document with more than one page
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user