akiran / akiran/react-slick

vertical: true with "unslick" mode make big height of box (empty space)

未关闭
#1,930 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
11.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

![image](https://user-images.githubusercontent.com/3511307/99768447-6f7d8b80-2b0d-11eb-94f4-a032bfbd3661.png)

Example: https://codesandbox.io/s/react-slick-playground-forked-jcn3k?file=/index.js

This bug because:
1. Missed `style: listStyle` here (`slick-list` without any limit):
```javascript
if (this.props.unslick) {
listProps = { className: "slick-list" };
innerSliderProps = { className };
}
```
2. Wrong calculation here for `vertical && unslick`, because no cloned items here:
```javascript
const trackChildren = spec.slideCount + 2 * spec.slidesToShow;
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。