position the hack absolutely

This commit is contained in:
Vladimir Agafonkin 2014-01-14 17:18:51 +02:00
parent 322039ea85
commit cd0c9ff8a5

View File

@ -200,7 +200,7 @@ L.GridLayer = L.Layer.extend({
if (this._zoomAnimated) { if (this._zoomAnimated) {
// a pretty funny hack - Safari bugs out with HW-acceleration when you pan to the right // a pretty funny hack - Safari bugs out with HW-acceleration when you pan to the right
// and there are no elements in the top left corner of the tile container, this fixes it // and there are no elements in the top left corner of the tile container, this fixes it
var hack = L.DomUtil.create('div', 'leaflet-hack leaflet-tile-loaded', this._tileContainer); var hack = L.DomUtil.create('div', 'leaflet-hack leaflet-tile leaflet-tile-loaded', this._tileContainer);
L.DomUtil.setTransform(hack, null, null, true); L.DomUtil.setTransform(hack, null, null, true);
} }