#690 - force overview map extent rectangle to have non-negative dimensions - thanks openlayers

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-05-01 15:21:18 +00:00
parent 8d2dfcf218
commit 67d44a04ba

View File

@@ -520,8 +520,8 @@ OpenLayers.Control.OverviewMap.prototype =
this.ovmap.size.w - this.wComp);
this.extentRectangle.style.top = parseInt(top) + 'px';
this.extentRectangle.style.left = parseInt(left) + 'px';
this.extentRectangle.style.height = parseInt(bottom - top)+ 'px';
this.extentRectangle.style.width = parseInt(right - left) + 'px';
this.extentRectangle.style.height = parseInt(Math.max(bottom - top, 0))+ 'px';
this.extentRectangle.style.width = parseInt(Math.max(right - left, 0)) + 'px';
},
/**