OpenLayers OpenLayers

Changeset 1641

Show
Ignore:
Timestamp:
10/06/06 07:14:29 (2 years ago)
Author:
crschmidt
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/Scale.js

    r1588 r1641  
    3232        if (!this.element) { 
    3333            this.element = document.createElement("div"); 
    34             this.div.style.right = "3px"; 
    35             this.div.style.bottom = "2em"; 
    36             this.div.style.left = ""; 
    37             this.div.style.top = ""; 
    38             this.div.style.display = "block"; 
    39             this.div.style.position = "absolute"; 
     34            this.div.className = "olControlScale"; 
    4035            this.element.style.fontSize="smaller"; 
    4136            this.div.appendChild(this.element); 
  • trunk/openlayers/theme/default/style.css

    r1639 r1641  
     1.olControlScale { 
     2    right: 3px; 
     3    bottom: 3em; 
     4    display: block; 
     5    position: absolute; 
     6}