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

Image Opening in Wrong Position if Scrolling #54

Open
RonivanFontanez opened this issue Jun 6, 2018 · 2 comments
Open

Image Opening in Wrong Position if Scrolling #54

RonivanFontanez opened this issue Jun 6, 2018 · 2 comments

Comments

@RonivanFontanez
Copy link

So I have an issue with ShadowBox, if I scroll down and try to open an image, it will always open at the very botton of the page, not the center. Only if I not scroll down that the opens in the correct position. I tried tho change some lines in the CSS but it was to no avail. Someone could help me a bit on this?

Also this don't happen in any mobile device, so I guess this is only to computer browser. Also I tested in differente browsers like Firefox and Chrome, giving me the same result.

@CameronSchuyler
Copy link

Link?

@rosscg
Copy link

rosscg commented Dec 23, 2022

I had the same problem in Chrome v108.0.5359.124 and Safari v14.0.2

It appears to be due to setContainerPosition not checking whether absolute positioning is used. I've updated the positioning in this PR but I haven't tested it on browsers which use absolute positioning.

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

3 participants