DataObjects/Core_notify_recur.php
[Pman.Core] / SimpleExcel.php
index 1d077aa..675e348 100644 (file)
@@ -299,6 +299,9 @@ class Pman_Core_SimpleExcel extends Pman
             $worksheet->setRow($start_row +$r, $cfg['row_height']);
         }
         
+        $line_height = (isset($cfg['line_height'])) ? $cfg['line_height'] : 12;
+        $height = 0;
+        
         foreach($cfg['cols']  as $c => $col_cfg) {
             
             if(isset($col_cfg['dataIndex']) && isset($cl[$col_cfg['dataIndex']])){
@@ -346,7 +349,7 @@ class Pman_Core_SimpleExcel extends Pman
             
             if(isset($col_cfg['autoHeight'])){
                 $vv = explode("\n", $v);
-                $height = count($vv) * 20;
+                $height = MAX(count($vv) * $line_height, $height);;
                 $worksheet->setRow($start_row+$r, $height);
             }
         }