You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2025/03/12 10:54:43 UTC

[Bug 68094] In 5.2.4 After called autoSizeColumn function, the returned column width is smaller than in 5.2.3, which makes the columns to be cut off

https://bz.apache.org/bugzilla/show_bug.cgi?id=68094

whaid@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #17 from whaid@hotmail.com ---
I really do not understand why it should not be possible to calculate the
correct width for the columns. I'm not talking about SXSSF columns, I'm talking
about XSSF columns.

It worked perfectly for years up to version 5.2.3 and then broke.

It should at least work with a standard OS (Windows), standard fonts and a
standard application (MS Excel). Other libraries are able to calculate the
correct size of fonts etc. without any problems.

It seems that since version 5.2.4 there is a calculation error of exactly 1
character.

Adding an extra 256, which is the value used inside XSSFSheet in the
autoSizeColumn function to multiply by the width, everything works fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org