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

Orbit slider doesn't work for me if its container is initially hidden #128

Open
billyroebuck opened this issue Apr 1, 2013 · 2 comments

Comments

@billyroebuck
Copy link

I'm using ZURB's Orbit slider within a custom made accordion. If the accordion container is hidden when the page loads, and then clicked on, the slider doesn't work.

Has anyone run into this issue? Any ideas on how to fix this?

@sam3k
Copy link

sam3k commented Apr 23, 2013

same here. This happens to me when the slider is a partial that has just been loaded. My temporary work around for this was to set a timeout to ensure that the view is loaded before the slider is initialized.

@billyroebuck
Copy link
Author

I haven't had a chance to try this yet, but I wonder if calling the orbit function via JavaScript when the panel is displayed would solve the issue. E.g. $("#featured").orbit();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants