Leaflet/Leaflet — pull request #1946 by kapouer (2013-08-07 09:22:59+00:00)
Title: Map.panInsideBounds: lookahead and center view

This avoids loops and provides a sensible fix
for #1908.