OpenLayers OpenLayers

Ticket #748: Scale-StyleToCss.patch

File Scale-StyleToCss.patch, 0.9 kB (added by penyaskito, 1 year ago)

Previous patch + added the style to the css

  • lib/OpenLayers/Control/Scale.js

    old new  
    4242        if (!this.element) { 
    4343            this.element = document.createElement("div"); 
    4444            this.div.className = this.displayClass; 
    45             this.element.style.fontSize="smaller"; 
    4645            this.div.appendChild(this.element); 
    4746        } 
    4847        this.map.events.register( 'moveend', this, this.updateScale); 
  • theme/default/style.css

    old new  
    2222    bottom: 3em; 
    2323    display: block; 
    2424    position: absolute; 
     25    font-size: smaller; 
    2526} 
    2627.olControlPermalink { 
    2728    right: 3px;