mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-22 01:18:59 +02:00
Fixed the height of dinamic map. TICKETS #1246
This commit is contained in:
parent
394929100a
commit
2a3f51c68c
@ -30,17 +30,17 @@ require_once ('include/functions_networkmap.php');
|
|||||||
|
|
||||||
if ($activeTab == "radial_dynamic") {
|
if ($activeTab == "radial_dynamic") {
|
||||||
include_once("include/functions_graph.php");
|
include_once("include/functions_graph.php");
|
||||||
|
|
||||||
echo "<div style='width: auto; text-align: center;'>";
|
echo "<div style='width: auto; text-align: center;'>";
|
||||||
|
|
||||||
$filter = array();
|
$filter = array();
|
||||||
if (!empty($group))
|
if (!empty($group))
|
||||||
$filter['group'] = $group;
|
$filter['group'] = $group;
|
||||||
if (!empty($module_group))
|
if (!empty($module_group))
|
||||||
$filter['module_group'] = $module_group;
|
$filter['module_group'] = $module_group;
|
||||||
|
|
||||||
echo graph_monitor_wheel(600, 650, $filter);
|
echo graph_monitor_wheel(600, 650, $filter);
|
||||||
|
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -115,8 +115,18 @@ echo '<div id="dinamic_networkmap" style="overflow: hidden;"></div>';
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
var width = $("#dinamic_networkmap").width(),
|
var width = $("#dinamic_networkmap").width();
|
||||||
height = $("#main").height();
|
if ($("#main").height()) {
|
||||||
|
var height = $("#main").height();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//Set the height in the pure view (fullscreen).
|
||||||
|
|
||||||
|
var height = $(window).height() -
|
||||||
|
$("#menu_tab_frame_view").height() -
|
||||||
|
80; // 80 of margin
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var color = d3.scale.category20();
|
var color = d3.scale.category20();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user