Permalink
Browse files

Merge pull request #229 from ahocevar/post-blank

Using a blankImageUrl that works for IFrames in IE9. r=@elemoine.
  • Loading branch information...
ahocevar committed Feb 28, 2012
2 parents 5444fbc + 221d7ca commit c55a8b554d4239620245c9d388688229f6838db3
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/OpenLayers/Tile/Image/IFrame.js
@@ -65,7 +65,11 @@ OpenLayers.Tile.Image.IFrame = {
// And if we had an iframe we also remove the event pane.
if(fromIFrame) {
+ this.blankImageUrl = this._blankImageUrl;
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.height = "100%";
style.zIndex = 1;
- style.backgroundImage = "url(" + this.blankImageUrl + ")";
+ style.backgroundImage = "url(" + this._blankImageUrl + ")";
this.frame.appendChild(eventPane);
}
@@ -133,7 +137,7 @@ OpenLayers.Tile.Image.IFrame = {
return OpenLayers.Tile.Image.prototype.getImage.apply(this, arguments);
}
},
-
+
/**
* Method: createRequestForm
* Create the html <form> element with width, height, bbox and all

0 comments on commit c55a8b5

Please sign in to comment.