Closed zhuman90 closed 9 months ago
3.1.51
10.38.1
8.2
Even though I set the columnWidths, the exported CSV file still has unchanged column widths.
class XXX implements FromCollection, ShouldAutoSize, WithHeadings, WithMapping, WithColumnWidths { public function columnWidths(): array { return [ 'A' => 100, 'B' => 100, 'C' => 100, 'D' => 100, 'E' => 100, 'F' => 100, 'G' => 100, 'H' => 100, 'I' => 100, 'J' => 100, 'K' => 100, 'L' => 100, 'M' => 100, 'N' => 100, 'O' => 100, 'P' => 100, 'Q' => 100, 'R' => 100, 'S' => 100, 'T' => 100, ]; } }
set column width
I think it's because you have the autosize concern
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.51
What version of Laravel are you using?
10.38.1
What version of PHP are you using?
8.2
Describe your issue
Even though I set the columnWidths, the exported CSV file still has unchanged column widths.
How can the issue be reproduced?
What should be the expected behaviour?
set column width