Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increased lineHeight cuts off multi-line cells #767

Closed
jtarvainen opened this issue Feb 4, 2021 · 2 comments · Fixed by #1000
Closed

increased lineHeight cuts off multi-line cells #767

jtarvainen opened this issue Feb 4, 2021 · 2 comments · Fixed by #1000

Comments

@jtarvainen
Copy link

I found the following bug in jsPDF-AutoTable v3.5.13:

Using a line height greater than the default (1.15) is not taken into account by jsPDF-AutoTable, causing multi-line cells to get cut off vertically.

Steps to reproduce:

const doc = new jsPDF({
    lineHeight: 1.5
})

doc.autoTable({
    body: [
        ['text \n on \n four \n lines'],
        ['text on one line'],
        ['text on one line'],
    ],
})

This issue was previously pointed on in August 2020 by another user, but for some reason that issue was closed, even though this is a clearly a bug.

@simonbengtsson
Copy link
Owner

True! There is a stale PR open for this #754, but a new PR would be great.

@mmghv
Copy link
Collaborator

mmghv commented Oct 10, 2023

Released in v3.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants