SimpleExcel.php
[Pman.Core] / SimpleExcel.php
index 2884501..16350ef 100644 (file)
@@ -299,6 +299,8 @@ class Pman_Core_SimpleExcel extends Pman
             $worksheet->setRow($start_row +$r, $cfg['row_height']);
         }
         
+        $height = 10;
+        
         foreach($cfg['cols']  as $c => $col_cfg) {
             
             if(isset($col_cfg['dataIndex']) && isset($cl[$col_cfg['dataIndex']])){
@@ -347,9 +349,8 @@ class Pman_Core_SimpleExcel extends Pman
 //            if(isset($col_cfg['autoHeight'])){
                 $vv = explode("\n", $v);
                 
-                $height = count($vv) * 20;
-                
-                $worksheet->setRow($start_row+$r, $height);
+                $height = MAX(count($vv) * 10, $height);;
+                $worksheet->setRow($start_row+$r, null);
 //            }
         }
         $this->start_row++;