When using a buffer, the grid lacks rows/columns at the top/left.

This is because the threshold used for deciding when a column or row is shifted is too far to the bottom right. A tiny fix, but effective. A new test makes sure that we don't shift columns more than necessary when the layer is dragged.
This commit is contained in:
ahocevar
2012-08-20 18:50:12 +02:00
parent 87e7cfe29c
commit 0f58868830
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1193,7 +1193,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
);
return;
}
var buffer = this.buffer || 1;
var buffer = this.buffer + 1;
var scale = this.getResolutionScale();
while(true) {
var tlViewPort = {