Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in the theme_lightbox2_image_ncck function (starting line 1868), $height is set
$height = $field['widget']['thumbnail_height'] === '' ? variable_get('image_ncck_default_full_height', IMAGE_NCCK_DEFAULT_FULL_HEIGHT) : $field['widget']['thumbnail_height'];
but as the title says, IMAGE_NCCK_DEFAULT_FULL_HEIGHT defaults to 0
so, at the moment, the images cant display as their height is 0. Lines 1896 and 1897 need to be updated to be
if($width) $attributes['width'] = $width;
if($height)$attributes['height'] = $height;
so they are not set if = 0; I personal would remove them all together, as defaults will still warp images of incorrect sizes.
a_c_m
Comments
Comment #1
stella CreditAttribution: stella commentedDone and checked in.
Cheers,
Stella
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
stella CreditAttribution: stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella