When a Views generated node-teaser containing an image with a caption is used, sometimes the width of the image is not used for the caption container correctly. Sometimes a caption container may print like this:

<div class="image-caption-container" style="width: 173px;">

And sometimes on different nodes it may print like this:

<div class="image-caption-container" style="width: 0px;">

Please help.

Comments

gregarios’s picture

Update: The "0px width" only seems to happen when displaying the node using Views Slideshow. When the second node teaser in a slideshow is revealed, the caption in that node has a width of 0px, breaking the node teaser layout. The first node in the slideshow appears correctly.

ingopingo’s picture

subscribing

davidwhthomas’s picture

Status: Active » Closed (duplicate)

possible duplicate of : http://drupal.org/node/675002

Fixed in latest dev release http://drupal.org/cvs?commit=311770

    if(imgwidth != 'undefined' && imgwidth != 0){
      $(this).parent().width(imgwidth);
    }