Allow upscaling widths as well as downscaling widths if they select "scale column widths to fit page width"

This commit is contained in:
james 2008-11-20 18:21:56 +00:00
parent cc619e3422
commit 544c6f4580

View File

@ -584,7 +584,7 @@ foreach($report_stock as $n=>$v) {
/* Determine the scale factor (use the label width so
* we can enforce margins) */
if($report['option']['fit_columns'] == 'yes' && $total_width > $label_stock['label_width']) {
if($report['option']['fit_columns'] == 'yes') { // && $total_width > $label_stock['label_width']) {
$static_width = $total_width - $scale_width;
$scale_factor = ($label_stock['label_width'] - $static_width) / $scale_width;
//echo "$scale_factor;