Open andricicezar opened 8 years ago
i also have the same issue of the extra space at the end
@fahd what parent are you suggesting to set overflow:hidden on ? I'm finding that none of the parent containers work in hiding the empty space when overflow is set to hidden :S
When reaching the end of the list you can scroll further like shown in the gif below.
Is there anyway to solve this problem with settings or would this be considered a bug? :)
Thanks!
Has anyone managed to get anything working for this? Having the same issue.
Ok I solved my issue! I added a custom style to the slick-slide
class to remove a small line on the right.
Can you see the small light blue line on the right? To fix it I did this:
.slick-slide{
margin-right: 1px;
}
That rule caused the issue. So, in your case also there might be something which overflows the slider. I think if the inner content overflow, this happens.
Any update here?
+1
Any update here? This is kind of a show stopper.
+1
+1
+1
+1
+1
+1
Bump & +1.
+1
+1
+1
+1
+1
+1
This has been resolved now. All you need now is to set infinite: false
. Refer to the example: https://github.com/akiran/react-slick/blob/master/examples/UnevenSetsFinite.js
infinite: false did not solve my whitespace issue..
@laveesingh @ro0t @mads-thines Did you anyone find a solution to this problem?
I also described this issue in: https://github.com/akiran/react-slick/issues/1334
I've made a fix (#1337) that would allow the finite variable width slider sliders to always fill the display area, using a new setting. I've added the pull request, not sure if it will be handled soon. In any case, you are free to use my own fork in your package.json: "react-slick": "git+https://git@github.com/diegopamio/react-slick.git",
But ideally, if you can, also please vote so that the pull request gets attention.
any progress on this issue?
My ideal scroller would be the one that is:
Done. I've updated the PR with those requirements.
This has been resolved now. All you need now is to set
infinite: false
. Refer to the example: https://github.com/akiran/react-slick/blob/master/examples/UnevenSetsFinite.js
This is NOT resolved. Did you take into consideration variableWidth elements?
I found solution that works for me.
I slightly changed Slick.prototype.getLeft method inside the library.
So, I put additional condition at the line 1097 like shown below:
} else if (slideIndex + _.options.slidesToShow === _.slideCount){ //remove additional space at the end of carousel _.slideOffset = Math.abs($('.slick-slide').outerWidth() * _.options.slidesToShow - $(window).width()); }
bump +1
bump + 1,
+1
Hi guys, for anyone still having this issue; I fixed it by making sure that slidesToScroll
was set to the same number as slidesToShow
. I recognize that this isn't ideal, especially if you need to scroll slides less than the number you're showing, but in my case, it didn't matter.
const settings = {slidesToScroll: 6, slidesToShow: 6}
if anyone still face this issue... i fixed this by setting the overflow as hidden to the Slider container
bump +1
I create a PR, can you review please? thanks.
This fix the issue for me, Thanks!
+1
+1
This is my solution. in innerSliderUtils.js, ln. 266 => targetSlide = Math.min(Math.max(0, spec.slideCount - spec.slidesToShow), currentSlide + slideOffset); ln. 463 => newSlide = Math.min(Math.max(0, spec.slideCount - spec.slidesToShow), currentSlide + getSlideCount(spec));
+1
+1
+1
+1
+1
+1
+1
Hi, this is also an issue when using swipeToSlide. It seems like the issue is inside innerSlideUtils.getTrackLeft
How can I stop the carousel to let that empty space at the end?
I don't want infinite or center mode.
https://jsfiddle.net/20bumb4g/1576/
Thank you