Browse Source

Fixed DetectSpanPositionExample example

Marcin Ziąbek 2 years ago
parent
commit
9551db0f0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/QuestPDF.Examples/TextExamples.cs

+ 2 - 2
Source/QuestPDF.Examples/TextExamples.cs

@@ -949,13 +949,13 @@ namespace QuestPDF.Examples
                                 text.Span(" - ");
                                 
                                 // record start
-                                text.Element().Width(0).Height(0)
+                                text.Element().Width(1).Height(1)
                                     .Canvas((canvas, size) => start = canvas.TotalMatrix.TransY / canvas.TotalMatrix.ScaleY);
                                 
                                 text.Span(Placeholders.LoremIpsum()).BackgroundColor(Colors.Red.Lighten4);
                                 
                                 // record end
-                                text.Element().Width(0).Height(0)
+                                text.Element().Width(1).Height(1)
                                     .Canvas((canvas, size) => end = canvas.TotalMatrix.TransY / canvas.TotalMatrix.ScaleY);
                             
                                 text.Span(" - ");