1. Move scalebar styling into CSS.

2. Move scalebar up, so we can move Permalink up slightly (that's the next 
   commit)  to not block google copyright.


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

View File

@@ -31,12 +31,7 @@ OpenLayers.Control.Scale.prototype =
OpenLayers.Control.prototype.draw.apply(this, arguments);
if (!this.element) {
this.element = document.createElement("div");
this.div.style.right = "3px";
this.div.style.bottom = "2em";
this.div.style.left = "";
this.div.style.top = "";
this.div.style.display = "block";
this.div.style.position = "absolute";
this.div.className = "olControlScale";
this.element.style.fontSize="smaller";
this.div.appendChild(this.element);
}

View File

@@ -0,0 +1,6 @@
.olControlScale {
right: 3px;
bottom: 3em;
display: block;
position: absolute;
}