-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Using the setAutoFilter and setAutoSize on a Header with HORIZONTAL_CENTER #3395
Comments
This isn't simply a header value in a cell, or about the alignment of the header; but these headers all have a filter icon. Please see Issue #3356 and PR #3358 and test against the latest master branch to see if this resolves your issue. If it is a resolution, then |
@MarkBaker I have 3 PR's which I think should be part of the next release PR #3372, PR #3391, PR #3392. I will try to merge them by tomorrow morning (California time). |
@MarkBaker loaded the latest master branch |
This is:
What is the expected behavior?
I would have hoped that the calculateColumnWidth would take into consideration the alignment of the header.
What is the current behavior?
The calculation looks great if the header has a HORIZONTAL_LEFT, but if the header is HORIZONTAL_CENTER the calculation could be to small.
Header is HORIZONTAL_LEFT
Header is HORIZONTAL_CENTER
What features do you think are causing the issue
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet - 1.27.1
PHP - 8.1.13
The text was updated successfully, but these errors were encountered: