From fe8791486ecd9e476272eb87204256f57b42a5e9 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 9 Feb 2015 17:32:29 +0800 Subject: [PATCH] SimpleExcel.php --- SimpleExcel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimpleExcel.php b/SimpleExcel.php index 549730dd..7ba756cc 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']); } - $height = 20; + $height = 1; foreach($cfg['cols'] as $c => $col_cfg) { @@ -349,7 +349,7 @@ class Pman_Core_SimpleExcel extends Pman // if(isset($col_cfg['autoHeight'])){ $vv = explode("\n", $v); - $height = MAX(count($vv) * 20, $height);; + $height = MAX(count($vv), $height);; $worksheet->setRow($start_row+$r, null); // } } -- 2.39.2