Fixed the height of dinamic map. TICKETS #1246

This commit is contained in:
mdtrooper 2014-09-10 13:31:05 +02:00
parent 394929100a
commit 2a3f51c68c
1 changed files with 16 additions and 6 deletions

View File

@ -115,8 +115,18 @@ echo '<div id="dinamic_networkmap" style="overflow: hidden;"></div>';
</style>
<script>
var width = $("#dinamic_networkmap").width(),
height = $("#main").height();
var width = $("#dinamic_networkmap").width();
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();