Browse Source

Added debug pointers to page

Marcin Ziąbek 4 years ago
parent
commit
eca93b7e66
1 changed files with 9 additions and 2 deletions
  1. 9 2
      QuestPDF/Elements/Page.cs

+ 9 - 2
QuestPDF/Elements/Page.cs

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