Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
istarkov merged 1 commit intogoogle-map-react:masterfromAndries-Smit:patch-1
Nov 24, 2016

Conversation

Andries-Smit
Copy link
Contributor

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)

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)
@istarkov
Copy link
Collaborator

Any picture? Or jsbin example please with the problem

@Andries-Smit
Copy link
ContributorAuthor

@istarkov
Copy link
Collaborator

I see, thank you!!!

@istarkovistarkov merged commitaffee2a intogoogle-map-react:masterNov 24, 2016
@istarkov
Copy link
Collaborator

google-map-react@0.21.4

@Andries-Smit
Copy link
ContributorAuthor

Thanks for the quick response, though I made a small mistake. I opened a new pull request.#283

@gablabelle
Copy link

@istarkov I tried to use thelockCenter prop without success.

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? ;-)

@lock
Copy link

lockbot commentedDec 1, 2019

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.

@locklockbot locked asresolvedand limited conversation to collaboratorsDec 1, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Andries-Smit@istarkov@gablabelle

[8]ページ先頭

©2009-2025 Movatter.jp