From 2a00af3dd75ebd915445d5160ceba078bab864f9 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 14 Dec 2007 04:47:43 +0000 Subject: [PATCH] Move scale control styling into CSS file where it belongs. git-svn-id: http://svn.openlayers.org/trunk/openlayers@5403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/Scale.js | 1 - theme/default/style.css | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/Scale.js b/lib/OpenLayers/Control/Scale.js index a641f20a68..538ee47292 100644 --- a/lib/OpenLayers/Control/Scale.js +++ b/lib/OpenLayers/Control/Scale.js @@ -42,7 +42,6 @@ OpenLayers.Control.Scale = OpenLayers.Class(OpenLayers.Control, { if (!this.element) { this.element = document.createElement("div"); this.div.className = this.displayClass; - this.element.style.fontSize="smaller"; this.div.appendChild(this.element); } this.map.events.register( 'moveend', this, this.updateScale); diff --git a/theme/default/style.css b/theme/default/style.css index 7d3b4fdb3e..19ab090eca 100644 --- a/theme/default/style.css +++ b/theme/default/style.css @@ -22,6 +22,7 @@ div.olMapViewport { bottom: 3em; display: block; position: absolute; + font-size: smaller; } .olControlPermalink { right: 3px;