Fixed the height of dinamic map. TICKETS #1246
This commit is contained in:
parent
394929100a
commit
2a3f51c68c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue