akiran / akiran/react-slick

"responsive" settings not working correctly inside an iframe

Abierto
#1,770 0 comentarios 5 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 seems to be a problem if you use the react slider inside an iframe (and the iframe does not use the whole width). The iframe uses only 50% of the total available width (as an example). If you have defined breakpoints in the settings, these values are calculated against the whole width of the browser window (because media querys are used) and not just against the width of the iframe.
The original slick slider has an additional setting "respondTo" which seems to help in this kind of situation.

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.