$worksheet->setRow($start_row +$r, $cfg['row_height']);
}
+ $maxHeight = 20;
+
foreach($cfg['cols'] as $c => $col_cfg) {
if(isset($col_cfg['dataIndex']) && isset($cl[$col_cfg['dataIndex']])){
$worksheet->write($start_row+$r, $c, $v, $format);
}
-// if(isset($col_cfg['autoHeight'])){
+ if(isset($col_cfg['autoHeight'])){
$vv = explode("\n", $v);
-
- $height = count($vv) * 20;
-
- $worksheet->write($start_row+$r, $height);
-// }
+ $maxHeight = MAX(count($vv) * 20, $maxHeight);;
+ $worksheet->setRow($start_row+$r, $height);
+ }
}
$this->start_row++;