Skip to content

Commit

Permalink
Fix table header alignment (#3032)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Holländer <lukas.hollaender@yworks.com>
  • Loading branch information
mojtaba-khallash and HackbrettXXX committed Dec 14, 2020
1 parent e834724 commit c0f6c54
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/cell.js
Expand Up @@ -426,7 +426,7 @@ import { jsPDF } from "../jspdf.js";
headerLabels = headers.map(function(header) {
return header.prompt || header.name || "";
});
headerAligns = headerNames.map(function(header) {
headerAligns = headers.map(function(header) {
return header.align || "left";
});
// Split header configs into names and prompts
Expand Down
Binary file modified test/reference/table-autoSize.pdf
Binary file not shown.
Binary file modified test/reference/table.pdf
Binary file not shown.

0 comments on commit c0f6c54

Please sign in to comment.