$worksheet->setRow($start_row +$r, $cfg['row_height']);
}
- $height = 10;
+ $line_height = (isset($cfg['line_height'])) ? $cfg['line_height'] : 12;
+ $height = 0;
foreach($cfg['cols'] as $c => $col_cfg) {
$worksheet->write($start_row+$r, $c, $v, $format);
}
-// if(isset($col_cfg['autoHeight'])){
+ if(isset($col_cfg['autoHeight'])){
$vv = explode("\n", $v);
-
- $height = MAX(count($vv) * 10, $height);;
- $worksheet->setRow($start_row+$r, null);
-// }
+ $height = MAX(count($vv) * $line_height, $height);;
+ $worksheet->setRow($start_row+$r, $height);
+ }
}
$this->start_row++;