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,
|
OpenLayers.Util.modifyDOMElement(this.frame,
|
||||||
null, this.position, this.size);
|
null, this.position, this.size);
|
||||||
|
|
||||||
|
var imageSize = this.layer.getImageSize();
|
||||||
if (this.layerAlphaHack) {
|
if (this.layerAlphaHack) {
|
||||||
OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,
|
OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,
|
||||||
null, null, this.size, this.url);
|
null, null, imageSize, this.url);
|
||||||
} else {
|
} else {
|
||||||
OpenLayers.Util.modifyDOMElement(this.imgDiv,
|
OpenLayers.Util.modifyDOMElement(this.imgDiv,
|
||||||
null, null, this.size) ;
|
null, null, imageSize) ;
|
||||||
this.imgDiv.src = this.url;
|
this.imgDiv.src = this.url;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -354,11 +355,12 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
initImgDiv: function() {
|
initImgDiv: function() {
|
||||||
|
|
||||||
var offset = this.layer.imageOffset;
|
var offset = this.layer.imageOffset;
|
||||||
|
var size = this.layer.getImageSize();
|
||||||
|
|
||||||
if (this.layerAlphaHack) {
|
if (this.layerAlphaHack) {
|
||||||
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
|
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
|
||||||
offset,
|
offset,
|
||||||
this.size,
|
size,
|
||||||
null,
|
null,
|
||||||
"relative",
|
"relative",
|
||||||
null,
|
null,
|
||||||
@@ -368,7 +370,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
} else {
|
} else {
|
||||||
this.imgDiv = OpenLayers.Util.createImage(null,
|
this.imgDiv = OpenLayers.Util.createImage(null,
|
||||||
offset,
|
offset,
|
||||||
this.size,
|
size,
|
||||||
null,
|
null,
|
||||||
"relative",
|
"relative",
|
||||||
null,
|
null,
|
||||||
|
|||||||
Reference in New Issue
Block a user