From: Alexander Ebert Date: Sat, 22 Feb 2014 21:43:55 +0000 (+0100) Subject: Fixed padding X-Git-Tag: 2.0.3~21 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=785dac427d2c1a2123e440929a5154e478d2b0ad;p=GitHub%2FWoltLab%2FWCF.git Fixed padding --- 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' });