Closed (duplicate)
Project:
Image
Version:
4.7.x-1.x-dev
Component:
image_gallery
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2006 at 03:10 UTC
Updated:
8 Nov 2006 at 20:15 UTC
When an image gallery is rendered, the module hardcodes the height of each gallery to be the height of the image displayed. This breaks horribly if you actually put in a lengthy gallery description. There's no reason to hardcode it anyways.
I just commented out the offending property on line 258 of image_gallery.module:
$content .= '<li>'; // style="height : '.$height .'px">';
Comments
Comment #1
Bèr Kessels commentedhttp://drupal.org/node/34320
Comment #2
afagioliI do agree.
the height make a mess in Firefox e Seamonkey.
I've removed the height attributes from that line,
[
image_gallery.module:259
$content .= '
]
which now is working as a charm.
strangely - as read at http://drupal.org/node/25054 - this issue is 1 year and more old.
Maybe is time to fix it?
Comment #3
afagioliCorrecting my previous post,
my better solution looks to be:
image_gallery.module:259
$content .= '
image_gallery.css
ul.galleries li {
.....
min-height:200px;
....
}
where 200 could be something like (thumbnail size*1.1sh)
maybe that's the reason why the author set preferes set height in php code, to eventualy dinamically change it
who knows....
finley