Fixed a bug on Settings-link placement

This commit is contained in:
terribl 2013-05-21 11:43:08 +03:00
parent 2d1325f014
commit 0ee5cdb5de
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@
<div id="map_canvas" style="height:100%"></div>
<div id="info">
<div>
<h1>Dump1090 - <span id="utcTime">00:00:00</span> UTC</h1>
<h1 id="header">Dump1090 - <span id="utcTime">00:00:00</span> UTC</h1>
<p id="geninfo"></p>
<p id="selinfo">Click on a plane for info.</p>
<div id="tabinfo"></div>

View file

@ -366,8 +366,7 @@ function printTime() {
function placeSettings() {
$('#info_settings').css('top', parseInt($('#utcTime').offset().top));
var marginLeft = $('#info').width() - $('#info_settings').width();
marginLeft -= parseInt($('#info_settings').width() / 3); // Little air around
var marginLeft = $('#header').width() - $('#info_settings').width();
$('#info_settings').css('left', marginLeft);
}