Fixed padding
authorAlexander Ebert <ebert@woltlab.com>
Sat, 22 Feb 2014 21:43:55 +0000 (22:43 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 22 Feb 2014 21:43:55 +0000 (22:43 +0100)
wcfsetup/install/files/js/WCF.ImageViewer.js

index 89fc32eed62811a10f599942c85370a1772be145..e67085c9c713908566ad44930b95553b6683693e 100644 (file)
@@ -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'
                });