When a gallery is displayed, the li items for the photos all include inline style height/width rules. This is impossible to override with style rules in a style sheet (afaik) and for some reason, the height of these li items is way too high. Do I need to wade through the code to find out how this number is calculated, or is it possible to adjust this in some configuration that I'm missing. I set the thumbnail h/w to 150/150, and the height of the items is 225, which seems a little high. Especially when most images are going to be landscape orientation, where they are shorter than they are tall.

CommentFileSizeAuthor
#2 imagegallery-height-164352.jpg31.36 KBHetta

Comments

drewish’s picture

Status: Active » Closed (duplicate)
Hetta’s picture

Version: 5.x-1.4 » 5.x-1.x-dev
StatusFileSize
new31.36 KB

The 225 comes from 150 (default thumbnail size) + 75. The 75 is found on line 373 in the current dev of the image_gallery.module (sites/all/modules/image/contrib/image_gallery ), which adds 75 to the height of thumbnail settings:
$height = $size['height'] + 75;

Removing the "+ 75" will make landscape-only thumbnails line up properly, while portraits among the landscapes will fall down on top of their names. (I've attached a screenshot of that.)

You can of course change it as and how you like.