Skip to content

Commit

Permalink
Merge pull request #2946 from nicolaspernot/t-1207
Browse files Browse the repository at this point in the history
#1207 White spaces when using variableWidth and infinite to true
  • Loading branch information
Greg Westneat authored Jul 29, 2017
2 parents fda50ab + b84a4c2 commit ce2d75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@
.attr('data-slick-index', slideIndex - _.slideCount)
.prependTo(_.$slideTrack).addClass('slick-cloned');
}
for (i = 0; i < infiniteCount; i += 1) {
for (i = 0; i < infiniteCount + _.slideCount; i += 1) {
slideIndex = i;
$(_.$slides[slideIndex]).clone(true).attr('id', '')
.attr('data-slick-index', slideIndex + _.slideCount)
Expand Down

0 comments on commit ce2d75a

Please sign in to comment.