diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 587f0a3034..9138f204a3 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -667,10 +667,10 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { * a new one with updated tileSize and extent. */ onMapResize: function() { - if (this.singleTile) { - this.clearGrid(); - this.setTileSize(); - } + if (this.singleTile) { + this.clearGrid(); + this.setTileSize(); + } }, /**