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

index 2884501..f5bd717 100644 (file)
@@ -344,13 +344,13 @@ 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 = count($vv) * 20;
                 
                 $worksheet->setRow($start_row+$r, $height);
-//            }
+            }
         }
         $this->start_row++;