From a5702b1268328e005f4f16724148d920f8835e6a Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 9 Feb 2015 17:30:03 +0800 Subject: [PATCH] SimpleExcel.php --- SimpleExcel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SimpleExcel.php b/SimpleExcel.php index a0da59bb..e1ba0111 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -299,7 +299,7 @@ class Pman_Core_SimpleExcel extends Pman $worksheet->setRow($start_row +$r, $cfg['row_height']); } - $maxHeight = 20; + $height = 20; foreach($cfg['cols'] as $c => $col_cfg) { @@ -348,8 +348,8 @@ class Pman_Core_SimpleExcel extends Pman // if(isset($col_cfg['autoHeight'])){ $vv = explode("\n", $v); - $maxHeight = MAX(count($vv) * 20, $maxHeight);; - $worksheet->setRow($start_row+$r, $maxHeight); + $height = MAX(count($vv) * 20, $height);; + $worksheet->setRow($start_row+$r, $height); // } } $this->start_row++; -- 2.39.2