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

Targeting a lightbox #28

Open
ghost opened this issue May 30, 2013 · 0 comments
Open

Targeting a lightbox #28

ghost opened this issue May 30, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented May 30, 2013

I need to target a lightbox that has a fixed position and z-index to the center of a page with other chardin elements, but I only want them displayed for the lightbox.

Currently I can fire a chardinjs start from the body to show all overlay elements, but when I target the lightbox I get an unhelpful console error:

Uncaught TypeError: Cannot read property 'offsetWidth' of undefined

I'd like to only start chardin for the child elements of the selector, is this possible?
ex: $('.the-lightbox').chardinJS('start')

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1129916-targeting-a-lightbox?utm_campaign=plugin&utm_content=tracker%2F283283&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283283&utm_medium=issues&utm_source=github).
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

0 participants