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

index 9790c45..84952e8 100644 (file)
@@ -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++;