backBuffer style left and top need to be rounded
This commit is contained in:
@@ -663,8 +663,8 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
this.backBufferLonLat, resolution);
|
||||
var leftOffset = parseInt(this.map.layerContainerDiv.style.left, 10);
|
||||
var topOffset = parseInt(this.map.layerContainerDiv.style.top, 10);
|
||||
backBuffer.style.left = (position.x - leftOffset) + '%';
|
||||
backBuffer.style.top = (position.y - topOffset) + '%';
|
||||
backBuffer.style.left = Math.round(position.x - leftOffset) + '%';
|
||||
backBuffer.style.top = Math.round(position.y - topOffset) + '%';
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user