From 7dbc70bcac0db50360445888720827b3d3a5df06 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 27 Sep 2012 14:00:27 +0200 Subject: [PATCH] Don't try to be too clever with size changes --- src/ol/map.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/map.js b/src/ol/map.js index 1a8fe88d53..3e8b409100 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -718,10 +718,7 @@ goog.exportProperty( * @param {ol.Size} size Size. */ ol.Map.prototype.setSize = function(size) { - var currentSize = this.getSize(); - if (!goog.isDef(currentSize) || !currentSize.equals(size)) { - this.set(ol.MapProperty.SIZE, size); - } + this.set(ol.MapProperty.SIZE, size); }; goog.exportProperty( ol.Map.prototype,