mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Re-calculate the area graph height with the legend height
(cherry picked from commit 2aa420e6231506e8572f6abecc0d3d115be04c81)
This commit is contained in:
parent
7ae4eaae5b
commit
a08387d91f
@ -1524,6 +1524,10 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||
|
||||
var plot = $.plot($('#' + graph_id), datas, options);
|
||||
|
||||
// Re-calculate the graph height with the legend height
|
||||
$('#'+graph_id).css('height',
|
||||
$('#'+graph_id).height() - $('#legend_'+graph_id).height());
|
||||
|
||||
if (vconsole) {
|
||||
var myCanvas = plot.getCanvas();
|
||||
plot.setupGrid(); // redraw plot to new size
|
||||
|
Loading…
x
Reference in New Issue
Block a user