Merge branch '1334-Dashboards-con-widgets-que-contienen-una-consola-visual-con-elementos-Auto-SLA-Graph' into 'develop'
Fix resize sla graphs in visual console - #1334 See merge request artica/pandorafms!915
This commit is contained in:
commit
5e8b4491fe
|
@ -867,8 +867,6 @@ function flot_slicesbar_graph ($graph_data, $period, $width, $height, $legend, $
|
||||||
|
|
||||||
include_javascript_dependencies_flot_graph();
|
include_javascript_dependencies_flot_graph();
|
||||||
|
|
||||||
$height+= 20;
|
|
||||||
|
|
||||||
$stacked_str = 'stack: stack,';
|
$stacked_str = 'stack: stack,';
|
||||||
|
|
||||||
// Get a unique identifier to graph
|
// Get a unique identifier to graph
|
||||||
|
@ -876,10 +874,10 @@ function flot_slicesbar_graph ($graph_data, $period, $width, $height, $legend, $
|
||||||
|
|
||||||
// Set some containers to legend, graph, timestamp tooltip, etc.
|
// Set some containers to legend, graph, timestamp tooltip, etc.
|
||||||
if ($stat_win) {
|
if ($stat_win) {
|
||||||
$return = "<div id='$graph_id' class='graph $adapt_key' style='width: ".$width."px; height: ".$height."px; display: inline-block;'></div>";
|
$return = "<div id='$graph_id' class='noresizevc graph $adapt_key' style='width: ".$width."px; height: ".$height."px; display: inline-block;'></div>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$return = "<div id='$graph_id' class='graph $adapt_key' style='width: ".$width."px; height: ".$height."px;'></div>";
|
$return = "<div id='$graph_id' class='noresizevc graph $adapt_key' style='width: ".$width."px; height: ".$height."px;'></div>";
|
||||||
}
|
}
|
||||||
$return .= "<div id='value_$graph_id' style='display:none; position:absolute; background:#fff; border: solid 1px #aaa; padding: 2px'></div>";
|
$return .= "<div id='value_$graph_id' style='display:none; position:absolute; background:#fff; border: solid 1px #aaa; padding: 2px'></div>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue