File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ var helpers = {
15
15
var slideWidth ;
16
16
17
17
if ( ! props . vertical ) {
18
- slideWidth = trackWidth / props . slidesToShow ;
18
+ slideWidth = this . getWidth ( ReactDOM . findDOMNode ( this ) ) / props . slidesToShow ;
19
19
} else {
20
- slideWidth = trackWidth ;
20
+ slideWidth = this . getWidth ( ReactDOM . findDOMNode ( this ) ) ;
21
21
}
22
22
23
23
const slideHeight = this . getHeight ( slickList . querySelector ( '[data-index="0"]' ) ) ;
@@ -57,9 +57,9 @@ var helpers = {
57
57
var slideWidth ;
58
58
59
59
if ( ! props . vertical ) {
60
- slideWidth = trackWidth / props . slidesToShow ;
60
+ slideWidth = this . getWidth ( ReactDOM . findDOMNode ( this ) ) / props . slidesToShow ;
61
61
} else {
62
- slideWidth = trackWidth ;
62
+ slideWidth = this . getWidth ( ReactDOM . findDOMNode ( this ) ) ;
63
63
}
64
64
65
65
const slideHeight = this . getHeight ( slickList . querySelector ( '[data-index="0"]' ) ) ;
You can’t perform that action at this time.
0 commit comments