akiran / akiran/react-slick

"responsive" settings not working correctly inside an iframe

オープン
#1,770 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。