Skip to content

Commit

Permalink
3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Apr 11, 2020
1 parent ddf8f91 commit d5140ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/jspdf.plugin.autotable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
*
* jsPDF AutoTable plugin v3.4.1
* jsPDF AutoTable plugin v3.4.2
*
* Copyright (c) 2020 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
* Licensed under the MIT License.
Expand Down Expand Up @@ -1991,13 +1991,15 @@ function printRow(row) {
cell.textPos.y = table.cursor.y + cell.height - cell.padding('bottom');
}
else {
cell.textPos.y = table.cursor.y + cell.height / 2;
var netHeight = cell.height - cell.padding('vertical');
cell.textPos.y = table.cursor.y + netHeight / 2 + cell.padding('top');
}
if (cell.styles.halign === 'right') {
cell.textPos.x = cell.x + cell.width - cell.padding('right');
}
else if (cell.styles.halign === 'center') {
cell.textPos.x = cell.x + cell.width / 2;
var netWidth = cell.width - cell.padding('horizontal');
cell.textPos.x = cell.x + netWidth / 2 + cell.padding('left');
}
else {
cell.textPos.x = cell.x + cell.padding('left');
Expand Down
4 changes: 2 additions & 2 deletions dist/jspdf.plugin.autotable.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf-autotable",
"version": "3.4.1",
"version": "3.4.2",
"description": "Generate pdf tables with javascript (jsPDF plugin)",
"main": "dist/jspdf.plugin.autotable.js",
"types": "dist/index",
Expand Down

0 comments on commit d5140ed

Please sign in to comment.