Move the control.div styling from the code to style.css. r=elemoine (closes #2476)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -83,9 +83,6 @@ OpenLayers.Control.ScaleLine = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
draw: function() {
|
draw: function() {
|
||||||
OpenLayers.Control.prototype.draw.apply(this, arguments);
|
OpenLayers.Control.prototype.draw.apply(this, arguments);
|
||||||
if (!this.eTop) {
|
if (!this.eTop) {
|
||||||
this.div.style.display = "block";
|
|
||||||
this.div.style.position = "absolute";
|
|
||||||
|
|
||||||
// stick in the top bar
|
// stick in the top bar
|
||||||
this.eTop = document.createElement("div");
|
this.eTop = document.createElement("div");
|
||||||
this.eTop.className = this.displayClass + "Top";
|
this.eTop.className = this.displayClass + "Top";
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ div.olLayerDiv {
|
|||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
.olControlScaleLine {
|
.olControlScaleLine {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
bottom: 15px;
|
bottom: 15px;
|
||||||
font-size: xx-small;
|
font-size: xx-small;
|
||||||
|
|||||||
Reference in New Issue
Block a user