Skip to content

Commit

Permalink
mobile tweasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte W committed Aug 8, 2015
1 parent 080e52c commit b1a83dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Scrollbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export default class Scrollbars extends Component {
this.state = {
x: 0,
y: 0,
width: 0,
height: 0,
heightPercentageInner: 0,
widthPercentageInner: 0
width: '100%',
height: '100%',
heightPercentageInner: 100,
widthPercentageInner: 100
};
}

Expand Down Expand Up @@ -349,15 +349,15 @@ export default class Scrollbars extends Component {
right: 2,
bottom: 2,
left: 2,
height: 6
height: widthPercentageInner < 100 ? 6 : 0
};

const scrollbarVerticalStyle = {
...scrollbarStyle,
right: 2,
bottom: 2,
top: 2,
width: 6
width: heightPercentageInner < 100 ? 6 : 0
};

return (
Expand Down

0 comments on commit b1a83dd

Please sign in to comment.