Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup size doesn't match image size #1

Open
Sven74Muc opened this issue May 7, 2017 · 1 comment
Open

Popup size doesn't match image size #1

Sven74Muc opened this issue May 7, 2017 · 1 comment

Comments

@Sven74Muc
Copy link
Owner

Sven74Muc commented May 7, 2017

If I click on a marker the popup opens. If the image is bigger than the default popup size. The issue happens like in the screens shown. If I close the popup and open it agin, everything is ok.
This happens because first the popup will be called and then the image. At the time the popup is called the first time the popup does not know the image size.

fault_b
fault_a

This needs to be handled with:
listen for the image's load event and call the popup's update() method once it has loaded

This in theory... I'm not a programmer, so don't know now how to go ahead.

@Sven74Muc
Copy link
Owner Author

Code can be downloaded here

https://www.mapsmarker.com/docs/how-to-install-the-plugin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant