- Notifications
You must be signed in to change notification settings - Fork855
Keep original center on _mapDomResizeCallback#282
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
When the resize event is triggered, the original center was lost. This issue is significant when the map is renders outside visible dom with zero height and width.When placed into the visible dom, the resize is triggered correctly. With this change the center will persist. (Without this fix the old center is the top left corner)
Any picture? Or jsbin example please with the problem |
I see, thank you!!! |
google-map-react@0.21.4 |
Thanks for the quick response, though I made a small mistake. I opened a new pull request.#283 |
gablabelle commentedMar 20, 2017
@istarkov I tried to use the How can I make sure that if I resize the map's container the center (and my marker) will stay in ... wait for it ... the center? ;-) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When the resize event is triggered, the original center was lost.
This issue is significant when the map is renders outside visible dom with zero height and width.
When placed into the visible dom, the resize is triggered correctly. With this change the center will persist. (Without this fix the old center is the top left corner)