Leaflet Popup Autopan doesn't always move whole popup into view when clicking marker
Expected behavior
When clicking on a marker near the edge of the map view, the map should pan to show the entire contents of the popup.
Actual behavior
When clicking on a marker near the edge of the map view, the map pans slightly, only showing the very bottom of the popup.
Steps to reproduce
Go to the default WebpackBin. Move the map so the marker is near the top of the screen. Click the marker.
Compare this result with: Go to LeafletJS.com Move the map so the marker is near the top of the screen. Click the marker.
When going on LeafletJS.com, the marker's popup moves into view. When doing this using react-leaftlet, the popup does not move into view.
Here are some images of this in practice:
React-leaflet:
LeafleatJS.com:
Thanks for the detailed report, should be fixed in v1.3.1.
Great! Looks like it's working well for me. Thank you for fixing this so quickly, and thank you for your work on this project.
Thanks!
This isn't working again for some reason!