Merge remote-tracking branch 'origin/master'

This commit is contained in:
mourner 2011-09-20 14:59:01 +03:00
commit 2954a4264f

View File

@ -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));