Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If number of divs is less than 'slidesToShow' and 'centerMode' is enabled, it breaks navigation. #2306

Closed
muzzwood opened this issue May 8, 2016 · 1 comment

Comments

@muzzwood
Copy link

muzzwood commented May 8, 2016

If number of divs is less than 'slidesToShow' and 'centerMode' is enabled on nav, it breaks navigation.

[ https://jsfiddle.net/digitalpenguin/0jgcu81w/ ]

use this jsfiddle to reproduce your bug:
https://jsfiddle.net/digitalpenguin/0jgcu81w/
we will likely close your issue without it.

You can see the nav has moved over to the right and arrows are missing.

On the fiddle if you disable centerMode or make slidesToShow less than your number of divs, navigation works as expected.

Steps to reproduce the problem

  1. Set 'slidesToShow' on the nav to equal or larger than your number of divs
  2. Enable 'centerMode'

What is the expected behaviour?

... Navigation should function as in the demos even with centerMode enabled regardless of the number of slides.

Navigation should not be pushed off to the side, arrows should stay visible and should track the selected image.

What is observed behaviour?

Navigation is pushed off to the side, arrows disappear and the selected image is not tracked. See fiddle.

More Details

  • Which browsers/versions does it happen on? All
  • Which jQuery/Slick version are you using? Latest stable
  • Did this work before? Unknown - first time using Slick
@muzzwood
Copy link
Author

muzzwood commented May 8, 2016

Looks like this is being fixed with the PR at #2118

Closing

@muzzwood muzzwood closed this as completed May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant