Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Sep 20, 2011
2 parents 9fe47c9 + 149437a commit 2954a42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ L.Map = L.Class.extend({
},

invalidateSize: function() {
if (!this._loaded) return this;

var oldSize = this.getSize();
this._sizeChanged = true;
this._rawPanBy(oldSize.subtract(this.getSize()).divideBy(2));
Expand Down

0 comments on commit 2954a42

Please sign in to comment.