akiran / akiran/react-slick

Issue with variableWidth and same height slides

Abierto
#1,824 0 comentarios 3 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.