[OpenLayers-Commits] r12251 - trunk/openlayers/lib/OpenLayers/Tile
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Aug 16 14:42:59 EDT 2011
Author: ahocevar
Date: 2011-08-16 11:42:58 -0700 (Tue, 16 Aug 2011)
New Revision: 12251
Modified:
trunk/openlayers/lib/OpenLayers/Tile/Image.js
Log:
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)
Modified: trunk/openlayers/lib/OpenLayers/Tile/Image.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-08-15 18:27:55 UTC (rev 12250)
+++ trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-08-16 18:42:58 UTC (rev 12251)
@@ -240,6 +240,7 @@
style.width = "100%";
style.height = "100%";
}
+ style.display = "none";
if (this.layer.opacity < 1) {
OpenLayers.Util.modifyDOMElement(img, null, null, null, null, null,
null, this.layer.opacity);
More information about the Commits
mailing list