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
This commit is contained in:
Schuyler Erle
2006-06-21 02:35:04 +00:00
parent 91a566ca61
commit b6f7222282

View File

@@ -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;
}
},
/**