You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have hoped that using the setAutoSize function would have appropriately determined the correct size for a column when the function setAutoFilter had already be applied.
Font::setTrueTypeFontPath("/usr/share/fonts/msttcore/");
Font::setAutoSizeMethod(Font::AUTOSIZE_METHOD_EXACT);
...// Apply filtering capability to the worksheet$worksheet->setAutoFilter($worksheet->calculateWorksheetDimension());
// Apply auto size to all columnsforeach (range('A',$workSheetMaxColumns) as$col) { $worksheet->getColumnDimension($col)->setAutoSize(true); }
...
What is the current behavior?
It does not seem to take into account the filter icon shown in the column. See attached images
When I double click on the column seperator in excel it widens the column widths to my satisfaction.
Which versions of PhpSpreadsheet and PHP are affected?
version 1.18.0 and master branch
The text was updated successfully, but these errors were encountered:
cwolcott
changed the title
Combining the setAutoFilter and Autosize
Combining the setAutoFilter and setAutoSize
Aug 15, 2021
This is:
What is the expected behavior?
I would have hoped that using the setAutoSize function would have appropriately determined the correct size for a column when the function setAutoFilter had already be applied.
What is the current behavior?
It does not seem to take into account the filter icon shown in the column. See attached images

When I double click on the column seperator in excel it widens the column widths to my satisfaction.

Which versions of PhpSpreadsheet and PHP are affected?
version 1.18.0 and master branch
The text was updated successfully, but these errors were encountered: