From 5852fb835eed4c0382360b46cfb75e6aa245c238 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 2 Oct 2006 16:16:58 +0000 Subject: [PATCH] Patch for better IE support from Tim Schaub. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1524 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Boxes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Boxes.js b/lib/OpenLayers/Layer/Boxes.js index 073befb19f..d63a7f8b1c 100644 --- a/lib/OpenLayers/Layer/Boxes.js +++ b/lib/OpenLayers/Layer/Boxes.js @@ -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);