Roll back r9115, which breaks things, until we have time to not make it break
things. This whis was committed with the intention of supporting things like #1285, which also didn't get into 2.8, I don't think this will be a problem. All tests still pass, and now the gutter example works. (Closes #2052) (See #1496) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -323,12 +323,13 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
OpenLayers.Util.modifyDOMElement(this.frame,
|
||||
null, this.position, this.size);
|
||||
|
||||
var imageSize = this.layer.getImageSize();
|
||||
if (this.layerAlphaHack) {
|
||||
OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,
|
||||
null, null, this.size, this.url);
|
||||
null, null, imageSize, this.url);
|
||||
} else {
|
||||
OpenLayers.Util.modifyDOMElement(this.imgDiv,
|
||||
null, null, this.size) ;
|
||||
null, null, imageSize) ;
|
||||
this.imgDiv.src = this.url;
|
||||
}
|
||||
},
|
||||
@@ -354,11 +355,12 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
initImgDiv: function() {
|
||||
|
||||
var offset = this.layer.imageOffset;
|
||||
var size = this.layer.getImageSize();
|
||||
|
||||
if (this.layerAlphaHack) {
|
||||
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
|
||||
offset,
|
||||
this.size,
|
||||
size,
|
||||
null,
|
||||
"relative",
|
||||
null,
|
||||
@@ -368,7 +370,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
} else {
|
||||
this.imgDiv = OpenLayers.Util.createImage(null,
|
||||
offset,
|
||||
this.size,
|
||||
size,
|
||||
null,
|
||||
"relative",
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user