Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte W committed Aug 7, 2015
1 parent 3a03b76 commit 71edfd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Scrollbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export default class Scrollbars extends Component {
this.setState({ width, height }, this.update);
}

componentWillReceiveProps() {
this.update();
}

componentWillUnmount() {
this.removeListeners();
}
Expand Down Expand Up @@ -297,11 +301,11 @@ export default class Scrollbars extends Component {
const thumbTranslateY = 'translateY(' + y + '%)';

const containerStyle = {
...style,
position: 'relative',
overflow: 'hidden',
width: '100%',
height: '100%'
height: '100%',
...style
};

const thumbStyle = {
Expand Down

0 comments on commit 71edfd7

Please sign in to comment.