Hi,
I'm trying to use jcarousel into my website. I've put a list to manage with jcarousel into a fieldset initially set to collapsed. When uncollapsing it, the jcarousel block is shown with only the first image. The other images are not visible even if the arrows let the gallery go back and forth. When the carousel is out of the fieldset it works correctly.
Using Firefox 3.5.5 on Win XP.

Thanks,
m.

Comments

quicksketch’s picture

Version: 6.x-1.1 » 6.x-2.x-dev
Component: Miscellaneous » Code
Status: Active » Postponed

I've confirmed this is still a problem, even with the latest 2.x version of jCarousel module and the latest library of jCarousel (0.2.7). jCarousel can't calculate the width of the carousel if it's not currently displayed on the page. This will likely need to be corrected by the jCarousel library.

quicksketch’s picture

Title: Jcarousel into fieldset » jCarousel inside collapsed fieldsets render incorrectly
quicksketch’s picture

There is a similar conversation over in #1180736: If Jcarousel is in a tab, it cannot display, which I've marked duplicate.

calefilm’s picture

Should we continue this discussion in this thread I presume? I have the same problem and tried applying this fix mentioned in http://drupal.org/node/1180736#comment-4566772 but had no luck..

calefilm’s picture

calefilm’s picture

So I have a question... I am using the Sky Theme and went to sky/css/framework and went into my drupal6-core.css file.

line 1293:

html.js .js-hide {
  display: none;
}

If i delete "display: none;" everything works. Is this safe? If i change it to "display: block;" this also works.. any problems you foresee with js files?

jamo-1’s picture

I'm not a drupal user but this issue was solved for me by placing the script calls to jcarousel at the foot of the page, which called the function after the content targeted by jcarousel was loaded. It also fixed the intermittent fousc problem on that particular site.

FYI there were two jcarousel areas on the page one had 30-40 li items to load.

Jimmy