Added detection for window height for map page - Correction

Fixes issue #879
This commit is contained in:
Rosiak
2015-04-29 22:59:30 +02:00
parent a669790768
commit bedb546779

View File

@@ -88,10 +88,6 @@ if (is_array($tmp_devices[0])) {
?>
<script>
var height = $(window).height() - 100;
$('#visualization').css('height', height + 'px');
</script>
<div id="visualization"></div>
<script src="js/vis.min.js"></script>
<script type="text/javascript">
@@ -143,6 +139,10 @@ echo $edges;
}
});
</script>
<script>
var height = $(window).height() - 100;
$('#visualization').height(height + 'px');
</script>
<?php