Fix for "Util.modifyAlphaImageDiv makes hidden elements reappear in IE6.".

Patch by jwpage. (Closes #1520) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-05-31 17:11:24 +00:00
parent 87f26c231e
commit 57237e8a58
2 changed files with 18 additions and 5 deletions

View File

@@ -427,8 +427,9 @@ OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,
"relative", border);
if (OpenLayers.Util.alphaHack()) {
div.style.display = "inline-block";
if(div.style.display != "none") {
div.style.display = "inline-block";
}
if (sizing == null) {
sizing = "scale";
}