Skip to content

Fix markers position on fullscreen mode #452

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

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

jbcochery
Copy link
Contributor

On fullscreen mode, the view size should not be computed from the DOM element size, but from the window dimensions.

Fixes #296

const mapDom = ReactDOM.findDOMNode(this.googleMapDom_);
this.geoService_.setViewSize(mapDom.clientWidth, mapDom.clientHeight);
if (document.fullscreen || document.webkitIsFullScreen || document.mozFullScreen) {
_this.geoService_.setViewSize(window.innerWidth, window.innerHeight);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_this is not defined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, sorry about that!

@emilpalsson
Copy link
Contributor

Great find @jbcochery! I was just about to start looking for a fix for #296 when I saw your PR. Crazy timing, for an issue 10 month old. Thanks @istarkov for a great lib!

@itsmichaeldiego
Copy link
Member

itsmichaeldiego commented Oct 10, 2017

Wow @emilpalsson same here! I was looking at that issue right now.

This is looking great @jbcochery, thank you! And thank you @istarkov for the lib!

Looking forward to get this merged.

@nicolasdelfino
Copy link

Any status of when this is getting merged?

@qur2
Copy link

qur2 commented Oct 30, 2017

I also got bitten by that issue. While the fix offered seems to work (thanks for that!), the real problem is that the ref that GooleMapReact keeps does not point to the div used to render the fullscreen map. The fix works because incidentally, the div to which we should have a ref to has the same size than the window.

@MaxFrolov
Copy link

@istarkov Hey, how about merging this fix?

@ShepelievD
Copy link

@istarkov really need this stuff, merge, please! 😢 😢 😢

@nicolasdelfino
Copy link

@istarkov Please communicate if this is getting merged or not. It would be a shame if people started working on their own forks and this project would stagnate.

@jkettmann
Copy link

@istarkov We also need this fix. Do you plan on merging this?

@istarkov
Copy link
Collaborator

Guys I need collaborator-leader of this project, see the readme top. I have no desire now to do anything :-(

@nicolasdelfino
Copy link

@istarkov I understand your position and hope you'll find someone willing to help. I'm sure you'll do.
In the meantime there is no reason for you not to merge this.

@itsmichaeldiego itsmichaeldiego merged commit 9a418f6 into google-map-react:master Dec 20, 2017
@itsmichaeldiego
Copy link
Member

This is merged and published. Feel free to upgrade to 0.26.0

CC @nicolasdelfino @emilpalsson @minhkl @huwr @paupalou @jkettmann @ShepelievD @Venumteam @qur2 @jbcochery

@lock
Copy link

lock bot commented Dec 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.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Markers position in fullscreen mode