avoid empty image placeholder in webkit browsers (and maybe an extra reflow) by setting initial display to 'none' as well. I take erilem's commit comment as still valid for this follow-up commit. (see #3419)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -240,6 +240,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile.BackBufferable, {
|
|||||||
style.width = "100%";
|
style.width = "100%";
|
||||||
style.height = "100%";
|
style.height = "100%";
|
||||||
}
|
}
|
||||||
|
style.display = "none";
|
||||||
if (this.layer.opacity < 1) {
|
if (this.layer.opacity < 1) {
|
||||||
OpenLayers.Util.modifyDOMElement(img, null, null, null, null, null,
|
OpenLayers.Util.modifyDOMElement(img, null, null, null, null, null,
|
||||||
null, this.layer.opacity);
|
null, this.layer.opacity);
|
||||||
|
|||||||
Reference in New Issue
Block a user