]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/edit.js
Stop the map overlapping the top bar
[rails.git] / app / assets / javascripts / edit.js
index 30823d49ea5d00a0a493463c4aa6f1046b6c4433..c2129e20c170a8a91470fb9c1f7390fcc7ca3f1a 100644 (file)
@@ -2,7 +2,7 @@ function maximiseMap() {
   $("#left").hide();
   $("#top-bar").hide();
 
-  $("#content").css("top", "0px");
+  $("#content").css("margin-top", "0px");
   if ($("html").attr("dir") == "ltr") {
     $("#content").css("margin-left", "0px");
   } else {
@@ -16,7 +16,7 @@ function minimiseMap() {
   $("#left").show();
   $("#top-bar").show();
 
-  $("#content").css("top", "30px");
+  $("#content").css("margin-top", "30px");
   if ($("html").attr("dir") == "ltr") {
     $("#content").css("margin-left", "185px");
   } else {