Clean magic number and define dynamic width
This commit is contained in:
parent
22305d7221
commit
b34b89f514
|
@ -4186,7 +4186,7 @@ function generator_chart_to_pdf(
|
||||||
$width_img = 650;
|
$width_img = 650;
|
||||||
$height_img = ($params['height'] + 50);
|
$height_img = ($params['height'] + 50);
|
||||||
} else {
|
} else {
|
||||||
$width_img = 550;
|
$width_img = $params['width'];
|
||||||
$height_img = $params['height'];
|
$height_img = $params['height'];
|
||||||
|
|
||||||
if ((int) $params['landscape'] === 1) {
|
if ((int) $params['landscape'] === 1) {
|
||||||
|
|
Loading…
Reference in New Issue