spreadsheet
spreadsheet copied to clipboard
autofitColumn() does not ignore hidden columns
Originally by wuuemm
If aSpreadsheet
(or wrapped POI's Sheet
) has hidden columns, autofitColumn(int columnIndex)
does not ignore them. Instead, blank vertical stripes of data-based calculated width are displayed. This method should not take columns for which isColumnHidden(int columnIndex)
returns true
into consideration.
-Obvious* workaround: test hidden status of a particular column in advance.
if (!spreadsheet.isColumnHidden(n)) spreadsheet.autofitColumn(n);
Imported from https://dev.vaadin.com/ issue #20110