Changeset 1359
- Timestamp:
- 08/24/06 11:19:18 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/MouseDefaults.js
r1358 r1359 82 82 this.zoomBox.style.filter = "alpha(opacity=50)"; // IE 83 83 this.zoomBox.style.opacity = "0.50"; 84 this. measureBox.style.fontSize = "1px";84 this.zoomBox.style.fontSize = "1px"; 85 85 this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; 86 86 this.map.viewPortDiv.appendChild(this.zoomBox); … … 98 98 var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); 99 99 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"; 102 102 if (evt.xy.x < this.mouseDragStart.x) { 103 103 this.zoomBox.style.left = evt.xy.x+"px";
