SimpleExcel.php
authorEdward <edward@roojs.com>
Mon, 9 Feb 2015 09:29:32 +0000 (17:29 +0800)
committerEdward <edward@roojs.com>
Mon, 9 Feb 2015 09:29:32 +0000 (17:29 +0800)
SimpleExcel.php

index 6dfed74..5047b3a 100644 (file)
@@ -348,7 +348,7 @@ class Pman_Core_SimpleExcel extends Pman
             
             if(isset($col_cfg['autoHeight'])){
                 $vv = explode("\n", $v);
-                $height = count($vv) * 20;
+                $maxHeight = MAX(count($vv) * 20, $maxHeight);;
                 $worksheet->setRow($start_row+$r, $height);
             }
         }