Dear all,

I am trying to do something similar as what is done by the fitBounds function when you want your map to best fit a set of markers.
My problem when I am doing it with a set of markers with fix open popup.
Then some popup get cuts out as in the picture below :



I tried to pass either markers latlng or popup latlng to fitBounds function but the problem stay the same.

Any help would be reallly appreciated.

Thank you in advance.

Best regards,

Baptiste.