From 99b000ecf47c01c26fbba52d34a16ed1c252b0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 7 Aug 2024 19:44:45 +0200 Subject: [PATCH] v0.0.504 --- goextVersion.go | 4 ++-- wpdf/wpdfTable.go | 4 ++++ wpdf/wpdf_test.go | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 496e127..3b163c7 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.503" +const GoextVersion = "0.0.504" -const GoextVersionTimestamp = "2024-08-07T19:37:38+0200" +const GoextVersionTimestamp = "2024-08-07T19:44:45+0200" diff --git a/wpdf/wpdfTable.go b/wpdf/wpdfTable.go index 2153d49..ab45840 100644 --- a/wpdf/wpdfTable.go +++ b/wpdf/wpdfTable.go @@ -137,11 +137,15 @@ func (b *TableBuilder) Build() { ellipsize := langext.Coalesce(style.ellipsize, true) cellPaddingHorz := langext.Coalesce(style.paddingHorz, 2) + fillHeight := langext.Coalesce(style.fillHeight, false) + bx := builder.GetX() by := builder.GetY() cellWidth := columnWidths[cellIdx] + _ = fillHeight // TODO implement, but how?? ( cells with fillHeight=true should have a border of the full column height, even if another column is growing it, but we do not know teh height beforehand ... ) + if langext.Coalesce(style.multiCell, true) { builder.MultiCell(str, style.PDFCellOpt.Copy().ToMulti().Width(cellWidth).Debug(debug)) diff --git a/wpdf/wpdf_test.go b/wpdf/wpdf_test.go index aaad329..1a45b90 100644 --- a/wpdf/wpdf_test.go +++ b/wpdf/wpdf_test.go @@ -81,6 +81,8 @@ func TestPDFBuilder(t *testing.T) { Debug(false). Build() + builder.Ln(8) + builder.Table(). Widths("auto", "20", "1fr", "20"). PadX(2).