From 9e8f7f796cf5e8a257bed86249154173da0b702a Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 6 Oct 2006 11:28:48 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Control/Permalink.js | 9 ++------- theme/default/style.css | 6 ++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/OpenLayers/Control/Permalink.js b/lib/OpenLayers/Control/Permalink.js index a77716a8a6..fe3b5f6f75 100644 --- a/lib/OpenLayers/Control/Permalink.js +++ b/lib/OpenLayers/Control/Permalink.js @@ -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=""; diff --git a/theme/default/style.css b/theme/default/style.css index ebeb103a03..e56b12a44a 100644 --- a/theme/default/style.css +++ b/theme/default/style.css @@ -4,3 +4,9 @@ display: block; position: absolute; } +.olControlPermalink { + right: 3px; + bottom: 1.5em; + display: block; + position: absolute; +}