$thumbhtml = "\n\t\t\t" . '<div style="height: ' . ( self::THUMB_PADDING + $this->mHeights ) . 'px;">'
. htmlspecialchars( $img->getLastError() ) . '</div>';
} 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,