Skip to content

Commit

Permalink
fix(table): setting padding to 0 not working in a tuple type
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Nov 16, 2023
1 parent b096a51 commit 14ad3c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pdf/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ export class Table {
};
} else {
return {
bottom: numberOrPositions[2] ? numberOrPositions[2] : numberOrPositions[0],
left: numberOrPositions[3] ? numberOrPositions[3] : numberOrPositions[1] ? numberOrPositions[1] : numberOrPositions[0],
right: numberOrPositions[1] ? numberOrPositions[1] : numberOrPositions[0],
bottom: numberOrPositions[2] !== undefined ? numberOrPositions[2] : numberOrPositions[0] ?? numberOrPositions[0],
left: numberOrPositions[3] !== undefined ? numberOrPositions[3] : numberOrPositions[1] ?? numberOrPositions[0],
right: numberOrPositions[1] !== undefined ? numberOrPositions[1] : numberOrPositions[0] ?? numberOrPositions[0],
top: numberOrPositions[0]
};
}
Expand Down

0 comments on commit 14ad3c3

Please sign in to comment.