* (bug 11321) Fix width of gallerybox when option "width=xxx" is used
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 13 Sep 2007 08:31:14 +0000 (08:31 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 13 Sep 2007 08:31:14 +0000 (08:31 +0000)
See the screenshots before/after attached to the bug.

RELEASE-NOTES
includes/ImageGallery.php

index ffef4d7..0432510 100644 (file)
@@ -49,7 +49,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 9252) Fix for tidy funkiness when using editintro mode
 * (bug 4021) Fix for MySQL wildcard search
 * (bug 10699) Fix for MySQL phrase search
-
+* (bug 11321) Fix width of gallerybox when option "width=xxx" is used
 
 === API changes in 1.12 ===
 
index 64f266f..46ecd16 100644 (file)
@@ -303,7 +303,7 @@ class ImageGallery
                                $s .= "\n\t<tr>";
                        }
                        $s .=
-                               "\n\t\t" . '<td><div class="gallerybox" style="width: '.($this->mWidths*1.25).'px;">'
+                               "\n\t\t" . '<td><div class="gallerybox" style="width: '.($this->mWidths+35).'px;">'
                                        . $thumbhtml
                                        . "\n\t\t\t" . '<div class="gallerytext">' . "\n"
                                                . $textlink . $text . $nb