From b6f72222824299dad899fe6285b5adfc8c99e889 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Wed, 21 Jun 2006 02:35:04 +0000 Subject: [PATCH] Bug fix to map.updateSize for IE when size is a percentage. Calls Element.getDimensions from Prototype.js, which hopefully is the right thing to do. Fixes ticket #37. git-svn-id: http://svn.openlayers.org/trunk/openlayers@638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 355d62c715..8512fa4e59 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -258,8 +258,9 @@ OpenLayers.Map.prototype = { this.events.div.offsets = null; // Workaround for the fact that hidden elements return 0 for size. if (this.size.w == 0 && this.size.h == 0) { - this.size.w = parseInt(this.div.style.width); - this.size.h = parseInt(this.div.style.height); + var dim = Element.getDimensions(this.div); + this.size.w = dim.width; + this.size.h = dim.height; } }, /**