[hamradio-commits] [dump1090] 182/373: Fixed a bug on Settings-link placement

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 0ee5cdb5de72e3a3c4cdbf9157438f0e5c8e44dc
Author: terribl <terri at rannalla.net>
Date:   Tue May 21 11:43:08 2013 +0300

    Fixed a bug on Settings-link placement
---
 public_html/gmap.html | 2 +-
 public_html/script.js | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/public_html/gmap.html b/public_html/gmap.html
index a197601..6bdd622 100644
--- a/public_html/gmap.html
+++ b/public_html/gmap.html
@@ -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>
diff --git a/public_html/script.js b/public_html/script.js
index 4d6c9fd..ba89a47 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -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);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list