OpenLayers OpenLayers

Changeset 1359

Show
Ignore:
Timestamp:
08/24/06 11:19:18 (2 years ago)
Author:
crschmidt
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Control/MouseDefaults.js

    r1358 r1359  
    8282            this.zoomBox.style.filter = "alpha(opacity=50)"; // IE 
    8383            this.zoomBox.style.opacity = "0.50"; 
    84             this.measureBox.style.fontSize = "1px"; 
     84            this.zoomBox.style.fontSize = "1px"; 
    8585            this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; 
    8686            this.map.viewPortDiv.appendChild(this.zoomBox); 
     
    9898                var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); 
    9999                var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); 
    100                 this.zoomBox.style.width = deltaX+"px"; 
    101                 this.zoomBox.style.height = deltaY+"px"; 
     100                this.zoomBox.style.width = Math.max(1, deltaX) + "px"; 
     101                this.zoomBox.style.height = Math.max(1, deltaY) + "px"; 
    102102                if (evt.xy.x < this.mouseDragStart.x) { 
    103103                    this.zoomBox.style.left = evt.xy.x+"px";