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

Adjusting window position regardless of relation with original image #91

Open
cAstraea opened this issue Nov 14, 2017 · 2 comments
Open

Comments

@cAstraea
Copy link

I'm looking to have the zoomWindow positioned square in the middle of the page and full window height regardless of the position of the original image but can't seem to figure out how to adjust it. In the source it adjusts itself based on those 16 positions with self.zoomWindow.css({ top: self.windowOffsetTop});

@igorlino
Copy link
Owner

Have you tried the from the demo 'Position 1: Default' ?

http://igorlino.github.io/elevatezoom-plus/examples.htm

@cAstraea
Copy link
Author

cAstraea commented Dec 2, 2017

Hello. Yes what I meant was for the window to track the top part of the screen. Amazon has the same problem as can be seen here http://recordit.co/24f1iBeAVN
So when I'm hovering over the image the preview will always be x pixels away from the visible top with no relation to anything else.
I added a position fixed on the zoomWindowContainer div
.zoomWindowContainer {
position: fixed;
top: 1%;
}

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