Compare commits

...

2 Commits

Author SHA1 Message Date
Sergey Shuchkin 75252a4a0c
Merge pull request #79 from 2advance/patch-1
Update SimpleXLSXGen.php
2022-10-28 22:06:12 +06:00
Robin f9d5480bb3
Update SimpleXLSXGen.php
Fix: Column width not working on Mac
2022-10-28 17:47:54 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ class SimpleXLSXGen {
}
foreach ( $COL as $k => $max ) {
$w = isset($this->sheets[$idx]['colwidth'][$k]) ? $this->sheets[$idx]['colwidth'][$k] : min( $max+1, 60);
$COLS[] = '<col min="'.$k.'" max="'.$k.'" width="'.$w.'" />';
$COLS[] = '<col min="'.$k.'" max="'.$k.'" width="'.$w.'" customWidth="1" />';
}
$COLS[] = '</cols>';
$REF = 'A1:'.$this->num2name(count($COL)) . $CUR_ROW;