Using a blankImgUrl that works for IFrames in IE9.
See http://trac.osgeo.org/openlayers/ticket/3624.
This commit is contained in:
@@ -65,7 +65,11 @@ OpenLayers.Tile.Image.IFrame = {
|
|||||||
// And if we had an iframe we also remove the event pane.
|
// And if we had an iframe we also remove the event pane.
|
||||||
|
|
||||||
if(fromIFrame) {
|
if(fromIFrame) {
|
||||||
|
this.blankImageUrl = this._blankImageUrl;
|
||||||
this.frame.removeChild(this.frame.firstChild);
|
this.frame.removeChild(this.frame.firstChild);
|
||||||
|
} else {
|
||||||
|
this._blankImageUrl = this.blankImageUrl;
|
||||||
|
this.blankImageUrl = "about:blank";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,7 +89,7 @@ OpenLayers.Tile.Image.IFrame = {
|
|||||||
style.width = "100%";
|
style.width = "100%";
|
||||||
style.height = "100%";
|
style.height = "100%";
|
||||||
style.zIndex = 1;
|
style.zIndex = 1;
|
||||||
style.backgroundImage = "url(" + this.blankImageUrl + ")";
|
style.backgroundImage = "url(" + this._blankImageUrl + ")";
|
||||||
this.frame.appendChild(eventPane);
|
this.frame.appendChild(eventPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user