akiran / akiran/react-slick

Issue with variableWidth and same height slides

Aperta
#1,824 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi There,

I have an issues with the slides, the postion of the slide seems to go out of the container:

here is the codesandbox link: https://codesandbox.io/s/react-slick-playground-lg8md?file=/index.css:188-193

And the hosted link: https://lg8md.csb.app/

Basically, what I'm trying to achieve is that by default the first/current slide is displayed larger by setting a variable width and the other slides are set to a smaller width. The slider works fine on the initial load, but the problem is when we click on next arrow and the slider position is overflowed/hidden and the image is only half visible (noticed something strange, when I did a resize of the window the it did position the slide correctly).

See attached images:
![image](https://user-images.githubusercontent.com/4180645/84546233-caa68900-acf8-11ea-9c70-1e722640062f.png)

Position of the slide is wrong:
![image](https://user-images.githubusercontent.com/4180645/84546264-e0b44980-acf8-11ea-9448-54eabe05a8a0.png)

Thanks,
Jerry Louis

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.