Adjust maxwidth calculation for galleries. Bug 27577
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Mon, 2 May 2011 18:00:09 +0000 (18:00 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Mon, 2 May 2011 18:00:09 +0000 (18:00 +0000)
includes/ImageGallery.php

index 9a37202..3c0365f 100644 (file)
@@ -38,7 +38,8 @@ class ImageGallery
         */
        const THUMB_PADDING = 30;
        const GB_PADDING = 5;
-       const GB_BORDERS = 6;
+       //2px borders on each side + 2px implied padding on each side
+       const GB_BORDERS = 8;
 
        /**
         * Create a new image gallery object.