Revert "Merge pull request #432 from ahocevar/iframe-opacity"
This reverts commitaf046b9af8, reversing changes made tof36fd5f0d1. The reason for reverting this is that the change breaks the select-feature-multilayer.html example.
This commit is contained in:
@@ -1286,12 +1286,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
this.opacity = opacity;
|
||||
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;
|
||||
}
|
||||
var element = childNodes[i].firstChild || childNodes[i];
|
||||
OpenLayers.Util.modifyDOMElement(element, null, null, null,
|
||||
null, null, null, opacity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user