From 785dac427d2c1a2123e440929a5154e478d2b0ad Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 22 Feb 2014 22:43:55 +0100 Subject: [PATCH] Fixed padding --- wcfsetup/install/files/js/WCF.ImageViewer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index 89fc32eed6..e67085c9c7 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -521,6 +521,12 @@ $.widget('ui.wcfImageViewer', { return true; }, + /** + * Callback function for the image 'load' event. + * + * @param integer currentActiveImage + * @param integer activeImageIndex + */ _imageOnLoad: function(currentActiveImage, activeImageIndex) { // image did not load in time, ignore if (currentActiveImage != this._active) { @@ -580,7 +586,7 @@ $.widget('ui.wcfImageViewer', { this._ui.images[targetIndex].css({ height: $height + 'px', - left: $left + 'px', + left: ($left + 10) + 'px', marginTop: (Math.round($height / 2) * -1) + 'px', width: $width + 'px' }); -- 2.20.1