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