Skip to content

Commit

Permalink
Merge pull request #1301 from ethanclevenger91/padding-width-grid-fix
Browse files Browse the repository at this point in the history
use jQuery css function instead of width
  • Loading branch information
simeydotme committed May 12, 2015
2 parents 16a4422 + 4da7990 commit 5f2aa75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,10 @@
};
_.$slider.html(newSlides);
_.$slider.children().children().children()
.width((100 / _.options.slidesPerRow) + "%")
.css({'display': 'inline-block'});
.css({
'width':(100 / _.options.slidesPerRow) + "%",
'display': 'inline-block'
});
};

};
Expand Down

0 comments on commit 5f2aa75

Please sign in to comment.