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

Slider image streching when slider counter is smaller than the slidesToShow #1196

Closed
ajeemaw opened this issue Apr 18, 2018 · 8 comments
Closed

Comments

@ajeemaw
Copy link

ajeemaw commented Apr 18, 2018

I have put 7 slides to show in 1366px screen. but the thing is, sometime the slider count is smaller than the amount of "slideToShow". In this scenario, If there is 3 slide, It will divide the width into 3. But Actually I want this to divide into 7 and display the 3 slides in that respective widths.

Guidelines for posting a new issue

  • Please replicate your issue with this CodeSandBox and provide a link to it along with the issue description
@laveesingh
Copy link
Contributor

This issue was fixed in previous releases. Could you replicate this issue with codesandbox demo?

@twgraham
Copy link

Sounds related to #1182

@binary-moon
Copy link

binary-moon commented Apr 30, 2018

@ajeemaw In your CSS, add the following to achieve what you want:
.slick-slide: { max-width: 14.2857% }

This will always make each slide span 1 / 7 of the available space, and will solve your problem

@ajeemaw
Copy link
Author

ajeemaw commented Jul 26, 2018

Ya I've solved this with the new version of Slick Slider. Thank you all.

@MickeyKay
Copy link

@ajeemaw I'm still seeing this issue. Can you confirm where this was fixed (e.g. commit link)? This is definitely something I'd like to solve.

@ajeemaw
Copy link
Author

ajeemaw commented Sep 13, 2018

@MickeyKay Sorry actually i dont remember the code, but for me it was not working in "react-slick": "^0.20.0", but it is working fine after upgrading the version to "react-slick": "^0.22.0"
And please use the relevant APIs (slidesToShow, responsive, breakpoints)
Please check with that version.

@ajeemaw ajeemaw closed this as completed Sep 13, 2018
@ajeemaw ajeemaw reopened this Sep 13, 2018
@MickeyKay
Copy link

@ajeemaw that this works if variableWidth is set to true.

@ajeemaw ajeemaw closed this as completed Sep 18, 2018
@GoutamShanbhag
Copy link

I am still having this issue i am currently using version ^0.29.0.
It would really help if anyone can tell me how you fix it

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

6 participants