Skip to content

Commit

Permalink
Fix react-component#279 - Use getBoundingClientRect for proper scaled…
Browse files Browse the repository at this point in the history
… width of slider
  • Loading branch information
dbryand committed Jun 21, 2017
1 parent cba733e commit d8400f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/createSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8400f7

Please sign in to comment.