Skip to content

Commit c0f6c54

Browse files
Fix table header alignment (#3032)
Co-authored-by: Lukas Holländer <[email protected]>
1 parent e834724 commit c0f6c54

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

src/modules/cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ import { jsPDF } from "../jspdf.js";
426426
headerLabels = headers.map(function(header) {
427427
return header.prompt || header.name || "";
428428
});
429-
headerAligns = headerNames.map(function(header) {
429+
headerAligns = headers.map(function(header) {
430430
return header.align || "left";
431431
});
432432
// Split header configs into names and prompts

test/reference/table-autoSize.pdf

0 Bytes
Binary file not shown.

test/reference/table.pdf

6 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)