diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index f859eb8f32..3997225fd0 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -3476,17 +3476,30 @@ function reporting_html_availability_graph($table, $item, $pdf=0) if (empty($item['data'][$k_chart]['failover']) === true) { $table1 = new stdClass(); $table1->width = '100%'; + $table1->autosize = 1; + $table1->styleTable = 'overflow: wrap; table-layout: fixed;'; $table1->data = []; $table1->size = []; $table1->size[0] = '10%'; $table1->size[1] = '80%'; - $table1->size[2] = '5%'; - $table1->size[3] = '5%'; + $table1->size[2] = '10%'; + $table1->style[0] = 'overflow-wrap: break-word'; + + // Align percentage and checks resume. + $table1->align[2] = 'center'; $table1->data[0][0] = $chart['agent'].'
'.$chart['module']; $table1->data[0][1] = $chart['chart']; - $table1->data[0][2] = "".$sla_value.''; - $table1->data[0][3] = "".$checks_resume.''; + $table1->data[0][2] = "".$sla_value.'
'; + + // Pdf sizes to avoid excesive overflow. + if ($pdf !== 0) { + $table1->size[0] = '15%'; + $table1->size[1] = '70%'; + $table1->size[2] = '15%'; + } + + $table1->data[0][2] .= "".$checks_resume.''; $tables_chart .= html_print_table( $table1,