From 662564957cd9e7ef35ae008ac13b73037a5d411e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Tue, 16 Feb 2010 08:21:25 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Control/ScaleLine.js | 3 --- theme/default/style.css | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Control/ScaleLine.js b/lib/OpenLayers/Control/ScaleLine.js index 432dd66b41..f9a8c7dcc0 100644 --- a/lib/OpenLayers/Control/ScaleLine.js +++ b/lib/OpenLayers/Control/ScaleLine.js @@ -83,9 +83,6 @@ OpenLayers.Control.ScaleLine = OpenLayers.Class(OpenLayers.Control, { draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); if (!this.eTop) { - this.div.style.display = "block"; - this.div.style.position = "absolute"; - // stick in the top bar this.eTop = document.createElement("div"); this.eTop.className = this.displayClass + "Top"; diff --git a/theme/default/style.css b/theme/default/style.css index 266c89451a..0627f0e153 100644 --- a/theme/default/style.css +++ b/theme/default/style.css @@ -36,6 +36,8 @@ div.olLayerDiv { font-size: smaller; } .olControlScaleLine { + display: block; + position: absolute; left: 10px; bottom: 15px; font-size: xx-small;