diff --git a/src/common/createSlider.jsx b/src/common/createSlider.jsx index ba8db7792..f1014065a 100644 --- a/src/common/createSlider.jsx +++ b/src/common/createSlider.jsx @@ -170,7 +170,7 @@ export default function createSlider(Component) { } return this.props.vertical ? - slider.clientHeight : slider.clientWidth; + slider.getBoundingClientRect().height : slider.getBoundingClientRect().width; } calcValue(offset) {