Fixed a bug on Settings-link placement
This commit is contained in:
parent
2d1325f014
commit
0ee5cdb5de
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue