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
Add dynamic column width support #867
base: main
Are you sure you want to change the base?
Conversation
694e03f
to
f84be4d
Compare
I have made here a repository which generates random user data and creates a pdf with the data. |
I have noticed that the width of the columns differs on the different sheets. This is due to the "ShowOnce" element. On page 2, the sizes of the cells from page 1 are not calculated because they are already rendered. |
It is expected that elements may have different sizes across pages. ShowOnce is only one potential root cause. I understand the desired behavior is that shrank/grown columns should have identical widths across all pages. In such a case, determining all widths will be genuinely challenging, as changing width also potentially changes displayed content, creating a feedback loop. |
Personally, I don't care if the columns are the same width on each sheet. For me it fits as it is after the PR. |
I have updated the pr to fix the different columns width per page. |
@MarcinZiabek Could you look at this pr again? It could really help me 😅 |
Add support for dynamic column width. #517
This currently only works for cells that don't use row or column spans.