Fixed: stack should not apply spacing for empty items

This commit is contained in:
Marcin Ziąbek
2021-05-05 13:26:46 +02:00
parent 44d7538578
commit 07f1eb99b9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -97,6 +97,7 @@ namespace QuestPDF.Elements
return elements;
return elements
.Where(x => !(x is Empty))
.Select(x => new Padding
{
Bottom = spacing,
+1 -1
View File
@@ -4,7 +4,7 @@
<Authors>MarcinZiabek</Authors>
<Company>CodeFlint</Company>
<PackageId>QuestPDF</PackageId>
<Version>2021.5.1</Version>
<Version>2021.5.2</Version>
<PackageDescription>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.</PackageDescription>
<PackageReleaseNotes>New elements: Box, Grid, Canvas, EnsureSpance and Layers. Redesigned the Debug element. Added material design colors. Added list of basic fonts. Added spacing property to the Row element. Fluent API improvements and increased stability.</PackageReleaseNotes>
<LangVersion>8</LangVersion>