瀏覽代碼

Fixed: stack should not apply spacing for empty items

Marcin Ziąbek 4 年之前
父節點
當前提交
07f1eb99b9
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      QuestPDF/Elements/Stack.cs
  2. 1 1
      QuestPDF/QuestPDF.csproj

+ 1 - 0
QuestPDF/Elements/Stack.cs

@@ -97,6 +97,7 @@ namespace QuestPDF.Elements
                 return elements;
                 return elements;
                 
                 
             return elements
             return elements
+                .Where(x => !(x is Empty))
                 .Select(x => new Padding
                 .Select(x => new Padding
                 {
                 {
                     Bottom = spacing,
                     Bottom = spacing,

+ 1 - 1
QuestPDF/QuestPDF.csproj

@@ -4,7 +4,7 @@
         <Authors>MarcinZiabek</Authors>
         <Authors>MarcinZiabek</Authors>
         <Company>CodeFlint</Company>
         <Company>CodeFlint</Company>
         <PackageId>QuestPDF</PackageId>
         <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>
         <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>
         <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>
         <LangVersion>8</LangVersion>