From 9358fb89379baba3ea610a3453038d79910203fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zi=C4=85bek?= Date: Wed, 5 Jan 2022 01:35:29 +0100 Subject: [PATCH] Fixed: traversing elements graph --- QuestPDF.Examples/TableExamples.cs | 2 +- QuestPDF/Elements/Row.cs | 2 +- QuestPDF/QuestPDF.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/QuestPDF.Examples/TableExamples.cs b/QuestPDF.Examples/TableExamples.cs index 55d9347..c777b85 100644 --- a/QuestPDF.Examples/TableExamples.cs +++ b/QuestPDF.Examples/TableExamples.cs @@ -327,7 +327,7 @@ namespace QuestPDF.Examples { return container .Border(1) - .BorderColor(Colors.Grey.Darken1) + .BorderColor(Colors.Grey.Lighten1) .Background(backgroundColor) .PaddingVertical(5) .PaddingHorizontal(10) diff --git a/QuestPDF/Elements/Row.cs b/QuestPDF/Elements/Row.cs index e3c54dc..045bd49 100644 --- a/QuestPDF/Elements/Row.cs +++ b/QuestPDF/Elements/Row.cs @@ -105,7 +105,7 @@ namespace QuestPDF.Elements if (RootElement == null) ComposeTree(); - return Items; + yield return RootElement; } internal override SpacePlan Measure(Size availableSpace) diff --git a/QuestPDF/QuestPDF.csproj b/QuestPDF/QuestPDF.csproj index cf89f70..3f2176f 100644 --- a/QuestPDF/QuestPDF.csproj +++ b/QuestPDF/QuestPDF.csproj @@ -4,7 +4,7 @@ MarcinZiabek CodeFlint QuestPDF - 2022.1.0-beta1 + 2022.1.0-beta2 QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API. $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/Resources/ReleaseNotes.txt")) 9