X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FImageGallery.php;h=4d5f067ca7dcd23bfab19f5d4cccfbfa1b37b7ad;hb=537a6eb680b3f7ea9c8eb0c740ae3a02bd64678f;hp=920ef059fb351571e42651f82160bdfed92ad357;hpb=592dd2b7e57dfd6e449b656b29bd06b7e58d3f19;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 920ef059fb..4d5f067ca7 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -221,7 +221,7 @@ class ImageGallery { if ( $this->mPerRow > 0 ) { $maxwidth = $this->mPerRow * ( $this->mWidths + self::THUMB_PADDING + self::GB_PADDING + self::GB_BORDERS ); - $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ''; + $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ''; # _width is ignored by any sane browser. IE6 doesn't know max-width so it uses _width instead $this->mAttribs['style'] = "max-width: {$maxwidth}px;_width: {$maxwidth}px;" . $oldStyle; } @@ -281,10 +281,7 @@ class ImageGallery { $thumbhtml = "\n\t\t\t" . '
' . htmlspecialchars( $img->getLastError() ) . '
'; } else { - # We get layout problems with the margin, if the image is smaller - # than the line-height (17), so we add less margin in these cases. - $minThumbHeight = $thumb->height > 17 ? $thumb->height : 17; - $vpad = ( self::THUMB_PADDING + $this->mHeights - $minThumbHeight ) /2; + $vpad = ( self::THUMB_PADDING + $this->mHeights - $thumb->height ) /2; $imageParameters = array( 'desc-link' => true,