Hi,

jcarousel works fine on the Iphone, but when I turn the IPhone from vertical to horizontal and vica versa, no prev and next images are displayed anymore. The IPhone resizes the website and I think jcarousel looses the width or something.

Is there a way, to restart jcarousel?
Do you have an idea?

Joerg

Comments

quicksketch’s picture

I couldn't confirm this problem on the jCarousel demos on an iPhone: http://sorgalla.com/jcarousel/ so I'm not sure if this is a problem with the jCarousel module or the jCarousel library.

When it comes to use of the jCarousel library, I refer users to the documenation (same link as above). I don't provide help on using the jCarousel library in the jCarousel module queue. The queue is for questions about jCarousel module and its interactions with Drupal, not general questions about the library.

jospBln’s picture

Ok, I'll check it out - the problem only appears, if you change the width to 100%, e.g. if you want to build a special IPhone site.

quicksketch’s picture

Status: Active » Fixed

So this does sound more like a library-issue than something that is specific to the module. Rather than using 100%, perhaps you can detect when the page is rotated and manually specify height and width for the carousel? You'd almost certainly need to refresh certain behaviors. See http://www.engageinteractive.co.uk/blog/2008/06/19/tutorial-building-a-w...

jospBln’s picture

I figured it out:
You have to check, that the height is fixed, it has to be the height of the image + title. And its important to set the 'Number of visible items' to auto. So you have to set the carousel item width to the width of the image.
Also it's best NOT to limit the max-width for img to 100%.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.