Title: Bug in MapsMarker Pro
Last modified: April 29, 2017

---

# Bug in MapsMarker Pro

 *  Resolved [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * (@hatschiii)
 * [9 years ago](https://wordpress.org/support/topic/bug-in-mapsmarker-pro/)
 * I did the following:
 * > 1. Setup a new subdomain under maps.domain.com
   >  2. Setup a fresh MapsPro installation
   > 3. Setup one layer (100% with, 600px hight) and one marker (map size 100% with,
   > 600px hight) 4. Create a site with the layer included maps.domain.com/bikemap
 * Set maxWidth (px): 600 maxHeight (px): 300 CSS for images in popups: max-width:
   234px !important; height:auto; width:auto !important;
 * **Result Fault_a: Popup is too much on the top of the map **
    Link fault_a: [http://funbox.i24.cc/fault_a.gif](http://funbox.i24.cc/fault_a.gif)
 * changed
    CSS for images in popups: max-width:234px !important; height:auto; width:
   auto !important; to CSS for images in popups: max-width:600px !important; height:
   auto; width:auto !important;
 * **Result Fault_b: Pobup is too much on the top of the map AND popup is to small
   for image**
    Link fault_b: [http://funbox.i24.cc/fault_b.gif](http://funbox.i24.cc/fault_b.gif)
 * The answer from support (they talked also with development internal):
 * > Hi Sven,
   >  unfortunately we did not find a short term solution here yet, sorry–
   > anyway result a is currently default leaflet behaviour (second click works)
   > and we hope that this will be improved with a future update of leaflet.js best,
   > L.
 * **If support isn’t able to help, anyone here is having an idea how to fix it?**
    -  This topic was modified 9 years ago by [hatschiii](https://wordpress.org/support/users/hatschiii/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * (@hatschiii)
 * [9 years ago](https://wordpress.org/support/topic/bug-in-mapsmarker-pro/#post-9073314)
 * To sharpen the issue:
 * The error happens only on the first click on each marker in a map. Closing and
   re-opening a marker shows the popup correct. If I reload the page the issue is
   back.
 * MapsMarker pushed me in direction of Leaflet. I opened an issue at githup and
   got the solution very quickly.
 * [https://github.com/Leaflet/Leaflet/issues/5484](https://github.com/Leaflet/Leaflet/issues/5484)
 * Leaflet doesn’t know the size of a marker at the first click
    Solution: using
   a **_load event_** and the popup’s **_update() method_**
 * Now it’s up to MapsMarker to get this very easy and quick fix into an update.
   Hope they get it done shortly.
    -  This reply was modified 9 years ago by [hatschiii](https://wordpress.org/support/users/hatschiii/).
    -  This reply was modified 9 years ago by [hatschiii](https://wordpress.org/support/users/hatschiii/).
    -  This reply was modified 9 years ago by [hatschiii](https://wordpress.org/support/users/hatschiii/).
 *  Thread Starter [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * (@hatschiii)
 * [9 years ago](https://wordpress.org/support/topic/bug-in-mapsmarker-pro/#post-9074777)
 * Within the github link there is also this link linked
 * [https://stackoverflow.com/questions/38170366/leaflet-adjust-popup-to-picture-size/38172374#38172374](https://stackoverflow.com/questions/38170366/leaflet-adjust-popup-to-picture-size/38172374#38172374)
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [9 years ago](https://wordpress.org/support/topic/bug-in-mapsmarker-pro/#post-9080678)
 * FYI
    This is an issue related to our pro version & is processed in our helpdesk
   at mapsmarker.com/helpdesk

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug in MapsMarker Pro’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/bug-in-mapsmarker-pro/#post-9080678)
 * Status: resolved