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

Google maps within a marker - Define parent feature request. #37

Closed
cboyce428 opened this issue Jul 23, 2016 · 1 comment
Closed

Google maps within a marker - Define parent feature request. #37

cboyce428 opened this issue Jul 23, 2016 · 1 comment

Comments

@cboyce428
Copy link

Firstly thanks for taking the time to put this together its great!.

If you try to use code within a google maps 'InfoWindow' although the viewerjs opens its not visible to the user (this can be proven it opens and loads by registering events).

This is due to the size of the parent tag from within the InfoWindow which is has a limited size. (the width of 'viewer-container' is zero so you see nothing)

Basically the hack to get it to work is changing:

_this.parent = parent = element.parentNode;

to become;

_this.parent = parent = document.getElementById('photoGallery');

(The 'photoGallery' div is within the body of the page:). On a later version it would be good if you could specify the parent or it renders it at document level.

Chris

@fengyuanchen
Copy link
Owner

Just an image viewer, not work with other things.

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

2 participants