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

better error message for small container for table #111

Open
Alan-M-Thomaz opened this issue Feb 21, 2019 · 1 comment
Open

better error message for small container for table #111

Alan-M-Thomaz opened this issue Feb 21, 2019 · 1 comment

Comments

@Alan-M-Thomaz
Copy link

Table's width was set too small to contain its contents (min width 540.0, requested 523.28)
when called for pdf.table(table_content, header: true, column_widths: [100, 100, 340])
that is a bit confuse, since i "requested" 540 width in column_widths

the problem was that the container(page, bounding_box, or whatever the table is in) it self was 523.28, take me a while to figure that the problem, would be better some message like Container is to small to contain the table(requested width: 540, container width: 523.28

@pointlessone
Copy link
Member

I agree the message is confusing. Would you have some time to contribute a fix for this?

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

No branches or pull requests

2 participants