From 5a7622c8ca7d2858d722a402fbddc4a2949a832d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 5 Dec 2008 22:35:30 +0000 Subject: fixed distbox-and-map-zoom problem --- map.css | 4 ++-- map.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/map.css b/map.css index 16667b1..78c8eef 100644 --- a/map.css +++ b/map.css @@ -38,8 +38,8 @@ div.box { bottom: 10px; } -#distboxOuter { - position: absolute; +#distboxouter { + position: fixed; width: 99%; top: 10px; background: none; diff --git a/map.js b/map.js index 4847a0d..7964726 100644 --- a/map.js +++ b/map.js @@ -230,6 +230,7 @@ RulerControl.prototype.initialize = function(map) { GEvent.addListener(marker2, "drag", function() { measure(); }); }); distBoxOuter = document.createElement("div"); + distBoxOuter.id = "distboxouter"; distBox = document.createElement("div"); distBox.className = "box"; distBox.id = "distbox"; -- cgit v1.2.1