From dcaae924fcec0bc749a34f1c41f44870242cbefc Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 3 Apr 2018 16:41:21 +0200 Subject: [PATCH] Decreased limit to reduceText call in some graphs --- pandora_console/include/graphs/flot/pandora.flot.js | 8 ++++---- pandora_console/include/styles/pandora.css | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 400125a219..b3ea1d5f8a 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -421,8 +421,8 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark, // var shortLabel = reduceText(label, 25); var title = label; var margin_top = 0; - if(label.length > 33){ - label = reduceText(label, 33); + if(label.length > 30){ + label = reduceText(label, 30); } var div_attributes = 'style="font-size:'+font_size+'pt !important;' + ' margin: 0; max-width: 150px;' @@ -432,7 +432,7 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark, div_attributes += "min-height: 2.5em;"; } - div_attributes += '" title="'+title+'" class="'+font+'"'; + div_attributes += '" title="'+title+'" class="'+font+'" '+ ' style="overflow: hidden;"'; format.push([i,'
' + label @@ -663,7 +663,7 @@ function pandoraFlotVBars(graph_id, values, labels, labels_long, legend, colors, } format.push([i, - '
' + '
' + label + '
']); } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 1b2cda24bf..9b39270e66 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -4630,7 +4630,6 @@ form ul.form_flex li ul li{ .tickLabel { white-space: nowrap; - overflow-x: hidden; line-height: 1.05em!important; }