SimpleExcel.php
[Pman.Core] / SimpleExcel.php
index 3c73fff..9790c45 100644 (file)
@@ -299,7 +299,7 @@ class Pman_Core_SimpleExcel extends Pman
             $worksheet->setRow($start_row +$r, $cfg['row_height']);
         }
         
-        $height = 20;
+        $line_height = (isset($cfg['line_height'])) ? $cfg['line_height'] : 12;
         
         foreach($cfg['cols']  as $c => $col_cfg) {
             
@@ -348,8 +348,8 @@ class Pman_Core_SimpleExcel extends Pman
             
 //            if(isset($col_cfg['autoHeight'])){
                 $vv = explode("\n", $v);
-                print_R($vv);exit;
-                $height = MAX(count($vv) * 20, $height);;
+                
+                $height = MAX(count($vv) * 12, $height);;
                 $worksheet->setRow($start_row+$r, $height);
 //            }
         }