Leaflet/Leaflet — pull request #1766 by jacobtoye (2013-06-20 05:07:24+00:00)
Title: Add parameter to invalidateSize for changing the center.

In certain situations you don't want the map to pan when you invalidate the size (usually after the maps container is resized).

Take Google maps as an example. The sidebar can be contracted and expanded. When this happens the map does not maintain the center (by panning).

I wasn't quire sure on the naming of the variable. It needed to be falsey by default to not break the API.

Let me know if you are happy with this change and I will update the docs as well.