akiran / akiran/react-slick

Slides going to multiple lines with variableWidth: true

Đang mở
#1,241 20 bình luận 22 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ả

### Problem

When using `variableWidth: true` the track width is miscalculated when one (or more) of the slides are wider than the container. This results in the track contents overflowing to multiple lines (and the slider becoming very high).

Original slick tackles this by setting the slideWidth always to 5000px when variableWidth is used (cf. https://github.com/kenwheeler/slick/blob/a2aa3fec335c50aceb58f6ef6d22df8e5f3238e1/slick/slick.js#L2081)

### Example from examples

This is visible in this example, when you resize the window: https://react-slick.neostack.com/docs/example/variable-width

![screen shot 2018-05-23 at 14 59 38](https://user-images.githubusercontent.com/22023038/40423112-2d72ead8-5e9a-11e8-923d-42386cb92d58.png)

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.