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

Render PhotoSwipe in a Portal #17

Open
onigoetz opened this issue Nov 17, 2016 · 2 comments
Open

Render PhotoSwipe in a Portal #17

onigoetz opened this issue Nov 17, 2016 · 2 comments

Comments

@onigoetz
Copy link

Is it possible that the PhotoSwipeGallery renders PhotoSwipe in a portal ?

(something like this : https://github.com/tajo/react-portal)

I have the case where my gallery is rendered in an absolute container and it messes up with PhotoSwipe.

@oyeanuj
Copy link

oyeanuj commented Mar 14, 2017

@onigoetz Did you end up with a solution for this?

@onigoetz
Copy link
Author

Hello, yes, I used a portal on my side, it works perfectly fine.

https://github.com/onigoetz/Comics-Reader/blob/master/src/js/components/ExtendedPhotoSwipeGallery.js

This is how I made it work.

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