group the img.style changes

This commit is contained in:
fredj
2011-12-12 15:05:51 +01:00
parent ee37617c21
commit 3cfd21c318

View File

@@ -228,7 +228,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
this.imgDiv = document.createElement("img");
this.imgDiv.className = "olTileImage";
this.imgDiv.style.position = "absolute";
// avoid image gallery menu in IE6
this.imgDiv.galleryImg = "no";
@@ -245,6 +244,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
style.height = "100%";
}
style.display = "none";
style.position = "absolute";
if (this.layer.opacity < 1) {
OpenLayers.Util.modifyDOMElement(this.imgDiv, null, null,
null, null, null, null,