forked from science-ation/science-ation
Allow upscaling widths as well as downscaling widths if they select "scale column widths to fit page width"
This commit is contained in:
parent
cc619e3422
commit
544c6f4580
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user