Skip to content

Commit

Permalink
fix(table): continue table on the same horizontal position
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Nov 16, 2023
1 parent 14ad3c3 commit e8e5aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdf/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class Table {
rowY + rowHeight >= doc.page.height - doc.page.margins.bottom
){
doc.switchToPage(this.getCurrentPage(doc) + 1);
doc.x = doc.page.margins.left ?? 0;
doc.x = tableX;
doc.y = doc.page.margins.top ?? 0;
rowY = doc.y;
}
Expand Down

0 comments on commit e8e5aec

Please sign in to comment.