From bc6b2e690d8ab086e8cbb3cc21b3c6b231e11cf2 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 9 Aug 2006 06:20:51 +0000 Subject: [PATCH] copy/paste bug git-svn-id: http://svn.openlayers.org/trunk/openlayers@1153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 1f8a174f9d..ffd688330b 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -153,7 +153,7 @@ OpenLayers.Layer.Grid.prototype = this.shiftColumn(true); } else if (tlViewPort.x < -this.tileSize.w * this.buffer) { this.shiftColumn(false); - } else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { + } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { this.shiftRow(true); } else if (tlViewPort.y < -this.tileSize.h * this.buffer) { this.shiftRow(false);