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 authored and captbaritone committed Jul 1, 2017
1 parent 89353ad commit 084b83d
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 084b83d

Please sign in to comment.