Move permalink up after moving its styling information into style.css.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1642 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-10-06 11:28:48 +00:00
parent dd3562c26a
commit 9e8f7f796c
2 changed files with 8 additions and 7 deletions

View File

@@ -56,15 +56,10 @@ OpenLayers.Control.Permalink.prototype =
*/
draw: function() {
OpenLayers.Control.prototype.draw.apply(this, arguments);
if (!this.element) {
this.div.className = 'olControlPermalink';
this.element = document.createElement("a");
this.div.style.right = "3px";
this.div.style.bottom = "3px";
this.div.style.left = "";
this.div.style.top = "";
this.div.style.display = "block";
this.div.style.position = "absolute";
this.element.style.fontSize="smaller";
this.element.innerHTML = "Permalink";
this.element.href="";

View File

@@ -4,3 +4,9 @@
display: block;
position: absolute;
}
.olControlPermalink {
right: 3px;
bottom: 1.5em;
display: block;
position: absolute;
}