Don't try to be too clever with size changes
This commit is contained in:
+1
-4
@@ -718,10 +718,7 @@ goog.exportProperty(
|
|||||||
* @param {ol.Size} size Size.
|
* @param {ol.Size} size Size.
|
||||||
*/
|
*/
|
||||||
ol.Map.prototype.setSize = function(size) {
|
ol.Map.prototype.setSize = function(size) {
|
||||||
var currentSize = this.getSize();
|
this.set(ol.MapProperty.SIZE, size);
|
||||||
if (!goog.isDef(currentSize) || !currentSize.equals(size)) {
|
|
||||||
this.set(ol.MapProperty.SIZE, size);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
goog.exportProperty(
|
goog.exportProperty(
|
||||||
ol.Map.prototype,
|
ol.Map.prototype,
|
||||||
|
|||||||
Reference in New Issue
Block a user