]> dev.renevier.net Git - syj.git/commitdiff
css improvements for nominatim-suggestions
authorarno <arno@renevier.net>
Sat, 21 Aug 2010 12:37:29 +0000 (14:37 +0200)
committerarno <arno@renevier.net>
Sat, 21 Aug 2010 20:13:25 +0000 (22:13 +0200)
application/views/scripts/idx/index.phtml
public/css/syj.css
public/js/syj.js

index ff1890e8915081c6051c196d9f5fc65fe72e7991..37d4fca509cf9758df8d3cbc8dfab31dcbd8505f 100644 (file)
             <img id="nominatim-throbber" src="icons/throbber.gif">
             </div>
 
-            <div id="nominatim-suggestions">
-            <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
-            <ul id="nominatim-suggestions-list"></ul>
-            </div>
-
         </form>
 
         <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
     <?php
         print $this->geomform;
     ?>
+
 </div>
 
+<?php if (!isset($this->path)) {?>
+            <div id="nominatim-suggestions">
+            <div id="nominatim-suggestions-title"><?php echo $this->translate('more results')?></div>
+            <ul id="nominatim-suggestions-list"></ul>
+            </div>
+<?php }?>
+
+
 </div>
 
 <div id="newpwd_area" class="modal">
index f3d0f0b965fc041c976f77dfb4d8c839ef377b52..f50af3ed846fedff4ff941e1632199dbf448594e 100644 (file)
@@ -51,6 +51,7 @@ body, html {
 }
 
 .menu-group {
+    z-index: 10; /* to be over nominatim-suggestions */
     position: relative; /* otherwise, under #map in ie */
     float: right;
     clear: right;
@@ -143,30 +144,52 @@ body, html {
     border: 1px solid black;
     padding: 0;
 }
+
+#geomform {
+    padding: 25px 45px 20px 45px;
+    *width: 40%; /* otherwise takes all screen width in ie<7 */
+}
+#edit-btn {
+    margin-top: 1em;
+}
+#geom_title {
+    margin-top: 0.7em;
+}
+#geom_submit {
+    margin-top: 0.7em;
+}
+
+#other-language {
+    opacity: 0.85;
+    filter:alpha(opacity=85);
+    background-color: white;
+    padding: 5px 1px 5px 1px;
+    position: relative; /* otherwise, under #map in ie */
+}
+
+/* nominatim-suggestions */
 #nominatim-suggestions {
+    text-align: left;
     border: 2px solid blue;
     -moz-border-radius: 8px;
     -webkit-border-radius: 8px;
     border-radius: 8px;
-    margin-top: 8px;
-<<<<<<< HEAD
     max-width: 360px;
     width: 360px\9; /* ie only */
-=======
-    max-width: 320px;
-    width: 320px\9; /* ie only */
->>>>>>> cf7da47... display route length
-    position: absolute;
     background-color: white;
-}
-#nominatim-suggestions-title {
-    text-align: center;
-    font-weight: bold;
+    position: absolute;
+    right: 8px;
 }
 #nominatim-suggestions-list {
+    margin-left: 0;
+    position: relative;
     list-style: none;
     padding: 0 16px 0 12px;
 }
+#nominatim-suggestions-title {
+    text-align: center;
+    font-weight: bold;
+}
 #nominatim-suggestions-list li.current {
     background-color: #D3D3D3;
 }
@@ -179,28 +202,6 @@ body, html {
     text-decoration: none;
 }
 
-#geomform {
-    padding: 25px 45px 20px 45px;
-    *width: 40%; /* otherwise takes all screen width in ie<7 */
-}
-#edit-btn {
-    margin-top: 1em;
-}
-#geom_title {
-    margin-top: 0.7em;
-}
-#geom_submit {
-    margin-top: 0.7em;
-}
-
-#other-language {
-    opacity: 0.85;
-    filter:alpha(opacity=85);
-    background-color: white;
-    padding: 5px 1px 5px 1px;
-    position: relative; /* otherwise, under #map in ie */
-}
-
 /* * login rules
  */
 .modal {
index 916d2775020bfc96b50241ab9e5d93acf9d8c6e5..e33ea4e306cfef58018c21641c4a1b98e9595748 100644 (file)
@@ -1107,7 +1107,7 @@ var Nominatim = (function() {
         if ($("nominatim-suggestions-list").childNodes.length > 1) {
             var bottomOffset = $('data_controls').measure('height') + 3;
             $("nominatim-suggestions").setStyle({
-                bottom: bottomOffset.toString() + 'px'
+                bottom: (document.viewport.getHeight() - $('data_controls').cumulativeOffset().top + 3).toString() + 'px'
             }).show();
             $("nominatim-suggestions-list").select("li:first-child")[0].addClassName('current');
         } else {