v0.0.504
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m53s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m53s
This commit is contained in:
parent
a173e30090
commit
99b000ecf4
@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
@ -137,11 +137,15 @@ func (b *TableBuilder) Build() {
|
|||||||
ellipsize := langext.Coalesce(style.ellipsize, true)
|
ellipsize := langext.Coalesce(style.ellipsize, true)
|
||||||
cellPaddingHorz := langext.Coalesce(style.paddingHorz, 2)
|
cellPaddingHorz := langext.Coalesce(style.paddingHorz, 2)
|
||||||
|
|
||||||
|
fillHeight := langext.Coalesce(style.fillHeight, false)
|
||||||
|
|
||||||
bx := builder.GetX()
|
bx := builder.GetX()
|
||||||
by := builder.GetY()
|
by := builder.GetY()
|
||||||
|
|
||||||
cellWidth := columnWidths[cellIdx]
|
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) {
|
if langext.Coalesce(style.multiCell, true) {
|
||||||
|
|
||||||
builder.MultiCell(str, style.PDFCellOpt.Copy().ToMulti().Width(cellWidth).Debug(debug))
|
builder.MultiCell(str, style.PDFCellOpt.Copy().ToMulti().Width(cellWidth).Debug(debug))
|
||||||
|
@ -81,6 +81,8 @@ func TestPDFBuilder(t *testing.T) {
|
|||||||
Debug(false).
|
Debug(false).
|
||||||
Build()
|
Build()
|
||||||
|
|
||||||
|
builder.Ln(8)
|
||||||
|
|
||||||
builder.Table().
|
builder.Table().
|
||||||
Widths("auto", "20", "1fr", "20").
|
Widths("auto", "20", "1fr", "20").
|
||||||
PadX(2).
|
PadX(2).
|
||||||
|
Loading…
Reference in New Issue
Block a user