Added debug pointers to page

This commit is contained in:
Marcin Ziąbek
2021-09-07 11:17:49 +02:00
parent 6a3bfd855e
commit eca93b7e66
+9 -2
View File
@@ -36,15 +36,22 @@ namespace QuestPDF.Elements
.Decoration(decoration =>
{
decoration.Header().Element(Header);
decoration
.Header()
.DebugPointer("Page header")
.Element(Header);
decoration
.Content()
.Element(x => IsClose(MinSize.Width, MaxSize.Width) ? x.ExtendHorizontal() : x)
.Element(x => IsClose(MinSize.Height, MaxSize.Height) ? x.ExtendVertical() : x)
.DebugPointer("Page content")
.Element(Content);
decoration.Footer().Element(Footer);
decoration
.Footer()
.DebugPointer("Page footer")
.Element(Footer);
});
bool IsClose(float x, float y)