From 61023019a8a5580d70246d80fa4465dbfb9fb86c Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 9 Feb 2015 17:35:37 +0800 Subject: [PATCH] SimpleExcel.php --- SimpleExcel.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SimpleExcel.php b/SimpleExcel.php index 9790c453..84952e8a 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -346,12 +346,11 @@ class Pman_Core_SimpleExcel extends Pman $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) * 12, $height);; + $height = MAX(count($vv) * $line_height, $height);; $worksheet->setRow($start_row+$r, $height); -// } + } } $this->start_row++; -- 2.39.2