From a3c63179104a0c5610424cb57ce0a7bc67b64044 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 23 Oct 2023 17:04:17 +0200 Subject: [PATCH] #9814 fix width height combined module graph --- .../include/lib/Dashboard/Widgets/single_graph.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php index 957159824c..9f62fc221d 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php +++ b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php @@ -439,7 +439,7 @@ class SingleGraphWidget extends Widget $trickHight = 0; if ($this->values['showLegend'] === 1) { // Needed for legend. - $trickHight = 40; + $trickHight = 60; } $output = '
'; @@ -448,10 +448,16 @@ class SingleGraphWidget extends Widget 'period' => $this->values['period'], 'date' => strtotime(date('Y-m-d H:i:s')), 'only_image' => false, - 'homeurl' => ui_get_full_url(false, false, false, false).'/', 'height' => ((int) $size['height'] - $trickHight), 'landscape' => $content['landscape'], 'return_img_base_64' => true, + 'show_legend' => $this->values['showLegend'], + 'width' => '100%', + 'height' => ((int) $size['height'] - $trickHight), + 'title' => $module_name, + 'unit' => $units_name, + 'homeurl' => $config['homeurl'], + 'menu' => false, ]; $params_combined = [