-
Notifications
You must be signed in to change notification settings - Fork 88
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
Make carousel responsive to changes in viewport dimensions #28
Comments
I think some thought could go into how to rearchitect the way the layout parameters are specified, so that they can stay defined relative to the size of the container. It would then also makes sense to trigger a render when the size of the parent container may have changed. My understanding is this can be tricky in the standard DOM API. |
Actually you can do that: HTML:
JS:
|
@evenmind, thanks for the duct tape! The invitation is still open for making this carousel officially responsive. |
Yes please if anybody has a solution for this to make it officially responsive that would be great |
It's not that it's not a desirable feature. It's that somebody would have to contribute the code. |
@evenmind When using your fix. I am getting that $("#showcase").data("carousel") is undefined when my carousel div has id showcase. Any idea what would be causing this? The selector seems to be picking up the div but it doesn't have a carousel property. |
@nicholasfay just delete this line: It's optional i think. |
@evenmind It works now thank you. The band-aid is more than enough of a solution for me so should I close this @specious or want to keep it open for a real solution? |
Keep it open. |
As a side note then since it will be kept open. Anybody trying to use the above solution make sure you add your Cloud9Carousel options back when recalling the constructor as the Jquery .clone() does not preserve these |
You can see here.
|
这就很好的解决了自适应的问题。This is a good solution to this problem。my English is not very well,sorry. |
I want my carousel to scale to the size of the page based on resizing of the page. I have tried recalling the document ready function on window resize but this seems to cause a recursion loop that scales the carousel over and over. Is there anyway to do this?
The text was updated successfully, but these errors were encountered: