-
Notifications
You must be signed in to change notification settings - Fork 420
Update Excel column width calculation to consistently respect emitter properties #2256 #2257
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
Update Excel column width calculation to consistently respect emitter properties #2256 #2257
Conversation
Why you have removed the |
I say redundant because we already calculate column width for every column using I don't see the benefit of using |
The autoSizeColumn was used for the case calcWidth is equal or lower 1 and "excel/xlsx" was used to set the auto sizing. And you have changed the behaviour of column width which is set at column level of a table and the calculated with. It seems to me that we can get side effects there. |
The block we're working in only gets executed I missed the I'll use a blank string for the data to simulate a case where calcWidth is < 1. Default emitter properties With proposed change: forceAutoColWidths = true excelAutoColWidthsIncludeTableHeader = true forceAutoColWidths = true AND excelAutoColWidthsIncludeTableHeader = true Please let me know your thoughts. Am I missing possible corner cases? Is there other issues with the before/after that need to be accounted for? The notable side effect is with those empty columns that have short headers are slightly wider than needed, is that a concern? |
Thanks for the test documentation and the test report. |
9a0dc69
to
4998f50
Compare
… properties eclipse-birt#2256 Remove redundant call to autoSizeColumn Set a lower bounds to calcWidth Remove the conditional for setColumnWidth
a44cdf7
to
5fe51cd
Compare
Columns with fixed width in mm match original behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change approved
Remove redundant call to autoSizeColumn
Set a lower bounds to calcWidth
Remove the conditional for setColumnWidth