Setting opacity on the IFrame's parent, like we used to do in 2.11.

This commit is contained in:
ahocevar
2012-04-23 10:36:51 -04:00
parent 07114fc894
commit 11cc960be5

View File

@@ -1287,6 +1287,11 @@ OpenLayers.Layer = OpenLayers.Class({
var childNodes = this.div.childNodes;
for(var i = 0, len = childNodes.length; i < len; ++i) {
var element = childNodes[i].lastChild || childNodes[i];
if (element.nodeName.toLowerCase() === "iframe") {
// changing opacity on IFrame elements does not work, so
// we set it on the parent
element = element.parentNode;
}
OpenLayers.Util.modifyDOMElement(element, null, null, null,
null, null, null, opacity);
}