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

Allow setting a cell's min_width and max_width properties #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericfreese
Copy link

This allows you to pass in min_width and max_width options when creating a table cell to override the default calculations.

@ericfreese
Copy link
Author

There is still a problem here. I believe it's an old bug that is only showing itself now that a cell's max_width can be something other than @pdf.bounds.width.

It appears that max width is not taken into account when calculating a table's column_widths.

@akostadinov
Copy link

Can this be merged because it makes things somehow better anyway? For example it makes sense to set min_width of header cells to something that will not wrap the header words, e.g. Address not to become Addres\ns.

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

Successfully merging this pull request may close these issues.

2 participants