Patch for better IE support from Tim Schaub.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1524 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-10-02 16:16:58 +00:00
parent c5f2196f98
commit 5852fb835e

View File

@@ -33,7 +33,8 @@ OpenLayers.Layer.Boxes.prototype =
marker.display(false);
} else {
var sz = new OpenLayers.Size(
botright.x - topleft.x, botright.y - topleft.y);
Math.max(1, botright.x - topleft.x),
Math.max(1, botright.y - topleft.y));
var markerDiv = marker.draw(topleft, sz);
if (!marker.drawn) {
this.div.appendChild(markerDiv);