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

autoSize wraps header if cell values are too small #3541

Closed
JarnoRFB opened this issue Dec 30, 2022 · 3 comments
Closed

autoSize wraps header if cell values are too small #3541

JarnoRFB opened this issue Dec 30, 2022 · 3 comments

Comments

@JarnoRFB
Copy link

I have read and understood the contribution guidelines.

At some fontsizes, the text in the header cell is wrapped, even if autoSize is set to true.

var doc = new jsPDF();

const header = ["VAT"];
const rows = [{VAT: "7%"}, {VAT: "7%"}];
doc.table(5, 15, rows, header, { autoSize: true, printHeaders: true, fontSize: 12 });

The minmal example can be pasted to https://raw.githack.com/MrRio/jsPDF/master/index.html

image

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

@JarnoRFB
Copy link
Author

JarnoRFB commented Apr 4, 2023

unstale

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

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

No branches or pull requests

1 participant