pdfmake
pdfmake copied to clipboard
Pdf layout breaks when table has headerRows = 0 and keepWithHeaderRows > 0
In the example below, there is just one table but if there are more elements it also affects them. So for example:
var dd = {
content: [
{
table: {
body: [
[ 'A', 'B' ],
[ 'C', 'D']
],
keepWithHeaderRows: 1,
headerRows: 0
}
},
]
}
When headerRows is set to 1, it does it correctly:
var dd = {
content: [
{
table: {
body: [
[ 'A', 'B' ],
[ 'C', 'D']
],
keepWithHeaderRows: 1,
headerRows: 1
}
},
]
}