react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Empty space at the end

Open andricicezar opened this issue 9 years ago • 69 comments

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

andricicezar avatar Nov 10 '16 13:11 andricicezar

i also have the same issue of the extra space at the end

ghost avatar Dec 28 '16 00:12 ghost

@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

VasilyShelkov avatar Feb 08 '17 09:02 VasilyShelkov

I've got the same problem.

When reaching the end of the list you can scroll further like shown in the gif below.

continuos scrolling in the end

Is there anyway to solve this problem with settings or would this be considered a bug? :)

Thanks!

mthines avatar May 05 '17 09:05 mthines

Has anyone managed to get anything working for this? Having the same issue.

alexjfno1 avatar May 10 '17 09:05 alexjfno1

Ok I solved my issue! I added a custom style to the slick-slide class to remove a small line on the right.

Screenshot

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.

THPubs avatar May 20 '17 12:05 THPubs

Any update here?

codermango avatar Jun 12 '17 10:06 codermango

+1

piersolenski avatar Jun 20 '17 16:06 piersolenski

Any update here? This is kind of a show stopper.

aakashlpin avatar Jul 07 '17 07:07 aakashlpin

+1

harshitkumar31 avatar Jul 17 '17 09:07 harshitkumar31

+1

calebo avatar Jul 26 '17 12:07 calebo

+1

vvasyliev avatar Jul 28 '17 12:07 vvasyliev

+1

dancnnm avatar Aug 21 '17 13:08 dancnnm

+1

Rusya13 avatar Sep 13 '17 00:09 Rusya13

+1

robertSahm avatar Sep 27 '17 03:09 robertSahm

Bump & +1.

CorwinCZ avatar Oct 10 '17 12:10 CorwinCZ

https://www.useloom.com/share/ea64a9ea40e44344872ec6b0c75add9b

vhmth avatar Oct 19 '17 23:10 vhmth

+1

KODerFunk avatar Oct 25 '17 15:10 KODerFunk

+1

inmutato avatar Dec 04 '17 14:12 inmutato

+1

djuta avatar Jan 02 '18 18:01 djuta

+1

markmanx avatar Jan 03 '18 17:01 markmanx

+1

rafaelderolez avatar Jan 03 '18 17:01 rafaelderolez

+1

freott avatar Jan 10 '18 10:01 freott

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

laveesingh avatar Jan 10 '18 11:01 laveesingh

infinite: false did not solve my whitespace issue..

ro0t avatar Jul 19 '18 13:07 ro0t

@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

dryleaf avatar Aug 10 '18 06:08 dryleaf

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://[email protected]/diegopamio/react-slick.git",

But ideally, if you can, also please vote so that the pull request gets attention.

diegopamio avatar Aug 13 '18 13:08 diegopamio

any progress on this issue?

Razum avatar Aug 14 '18 06:08 Razum

My ideal scroller would be the one that is:

  • finite
  • Variable width
  • scrolls all 100% visible slides at a time (irrespective of viewports or screen width)
  • with no paddings or centerings

dryleaf avatar Aug 15 '18 22:08 dryleaf

Done. I've updated the PR with those requirements.

diegopamio avatar Aug 21 '18 20:08 diegopamio

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?

imprfekt avatar Sep 20 '18 17:09 imprfekt