orbit icon indicating copy to clipboard operation
orbit copied to clipboard

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

Open billyroebuck opened this issue 13 years ago • 2 comments

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?

billyroebuck avatar Apr 01 '13 23:04 billyroebuck

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.

sam3k avatar Apr 23 '13 02:04 sam3k

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();

billyroebuck avatar Apr 29 '13 23:04 billyroebuck