Summary: | Applying style with big font does not update row height attributes | ||
---|---|---|---|
Product: | POI | Reporter: | Antti Koskimäki <antti.koskimaki> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED INFORMATIONPROVIDED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.5-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Bug Depends on: | 47658 | ||
Bug Blocks: | |||
Attachments: | source and excel to re-produce the bug |
Description
Antti Koskimäki
2008-12-29 23:24:02 UTC
> resulting excel does have row tall enough to contain the text (font) but
> row.getHeight() still returns original height value.
Another case related to here; if I have cell having "wrap text" option set, and row was therefore stretched, the getHeight() returns that stretched size, even after replacing the row contents with something that fits in "single height".
I.e. the height value is not (re-)set here either.
As far as I see you are not adjusting the height of the row anywhere and Apache POI does not try to auto-size row-height based on fonts used in any cell. So by specifying the row-height via row.setHeightInPoints((short)30); before writing the file you should be able to get the expected behavior. |