From 812722b16fc3d0ed422b0a520678ab4c089a3f36 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Mon, 2 May 2011 18:00:09 +0000 Subject: [PATCH] Adjust maxwidth calculation for galleries. Bug 27577 --- includes/ImageGallery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 9a372020a4..3c0365f84c 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -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. -- 2.20.1