Make permalinks draggable

Move the div containing the permalinks outside the map div so that
they aren't affected by the OpenLayers event handlers and hence get
the normal drag handling for links. Closes #3251.
This commit is contained in:
Tom Hughes 2010-10-11 08:39:05 +01:00
parent 59e86dc07a
commit 1a80a11c4c
2 changed files with 23 additions and 22 deletions

View file

@ -17,10 +17,11 @@
</noscript> </noscript>
<div id="map"> <div id="map">
<div id="permalink"> </div>
<div id="permalink">
<a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/> <a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
<a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a> <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
</div>
</div> </div>
<div id="attribution"> <div id="attribution">

View file

@ -335,12 +335,12 @@ hr {
display: none !important; display: none !important;
} }
#map #permalink { #permalink {
z-index:10000; z-index: 10000;
position:absolute; position: absolute;
bottom:15px; bottom: 15px;
right:15px; right: 15px;
font-size:smaller; font-size: smaller;
text-align: right; text-align: right;
} }