Skip to content

Commit

Permalink
v3.0.6 fixed fading bug thanks to Dpuglas Garrido
Browse files Browse the repository at this point in the history
  • Loading branch information
pratinav committed Oct 21, 2015
1 parent aae63e0 commit de74fdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions jcider.js
@@ -1,5 +1,5 @@
/*!
* jCider v3.0.5 (http://pratinav.tk/jCider)
* jCider v3.0.6 (http://pratinav.tk/jCider)
* (c) 2015 Pratinav Bagla (http://pratinav.tk)
* Released under the MIT License (https://github.com/Pratinav/jCider/blob/master/LICENSE.txt)
**/
Expand Down Expand Up @@ -139,14 +139,14 @@
* Calculate width and offset of all slides
*/
function calcWidth() {
if (config.fading) return;
var width = 0;
offset = [];
for (var x = 0; x < slideCount; x++) {
offset[x] = -width;
$slides.eq(x).css('left', width);
width+= $slides.eq(x).outerWidth(true);
}
return width;
}


Expand Down Expand Up @@ -493,7 +493,8 @@
});

$slides.css({
'position': 'absolute'
'position': 'absolute',
'left': '0'
});

if (config.fading) {
Expand Down
4 changes: 2 additions & 2 deletions jcider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de74fdc

Please sign in to comment.