Skip to content

Commit c18f95d

Browse files
committed
version update
1 parent 8bcdcb8 commit c18f95d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/react-slick.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,9 @@ return /******/ (function(modules) { // webpackBootstrap
10951095
var slideWidth;
10961096

10971097
if (!props.vertical) {
1098-
slideWidth = trackWidth / props.slidesToShow;
1098+
slideWidth = this.getWidth(_reactDom2.default.findDOMNode(this)) / props.slidesToShow;
10991099
} else {
1100-
slideWidth = trackWidth;
1100+
slideWidth = this.getWidth(_reactDom2.default.findDOMNode(this));
11011101
}
11021102

11031103
var slideHeight = this.getHeight(slickList.querySelector('[data-index="0"]'));
@@ -1137,9 +1137,9 @@ return /******/ (function(modules) { // webpackBootstrap
11371137
var slideWidth;
11381138

11391139
if (!props.vertical) {
1140-
slideWidth = trackWidth / props.slidesToShow;
1140+
slideWidth = this.getWidth(_reactDom2.default.findDOMNode(this)) / props.slidesToShow;
11411141
} else {
1142-
slideWidth = trackWidth;
1142+
slideWidth = this.getWidth(_reactDom2.default.findDOMNode(this));
11431143
}
11441144

11451145
var slideHeight = this.getHeight(slickList.querySelector('[data-index="0"]'));

0 commit comments

Comments
 (0)