akiran / akiran/react-slick

"responsive" settings not working correctly inside an iframe

Đang mở
#1,770 0 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.