akiran / akiran/react-slick

"responsive" settings not working correctly inside an iframe

Open
#1,770 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.