Changeset 1360
- Timestamp:
- 08/24/06 11:20:48 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/MouseToolbar.js
r1357 r1360 217 217 var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); 218 218 var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); 219 this.zoomBox.style.width = deltaX+"px";220 this.zoomBox.style.height = deltaY+"px";219 this.zoomBox.style.width = Math.max(1, deltaX) + "px"; 220 this.zoomBox.style.height = Math.max(1, deltaY) + "px"; 221 221 if (evt.xy.x < this.mouseDragStart.x) { 222 222 this.zoomBox.style.left = evt.xy.x+"px";
