Fixed: the Alignment element enforces size constraints in both direction, even if only one is provided

This commit is contained in:
MarcinZiabek
2022-12-09 01:02:47 +01:00
parent 9bef7d64d5
commit d2ba21821f
4 changed files with 80 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
using NUnit.Framework;
using QuestPDF.Examples.Engine;
using QuestPDF.Fluent;
using QuestPDF.Helpers;
namespace QuestPDF.Examples
{
public class AlignmentExamples
{
[Test]
public void Example()
{
RenderingTest
.Create()
.PageSize(400, 200)
.ProduceImages()
.ShowResults()
.Render(container =>
{
container
.Padding(25)
.Border(1)
.AlignBottom()
.Background(Colors.Grey.Lighten1)
.Text("Test");
});
}
}
}