Skip to content

Commit

Permalink
chore: remove check on overflow: scroll as it shouldn't be done
Browse files Browse the repository at this point in the history
  • Loading branch information
Grsmto committed Nov 20, 2018
1 parent ef40cec commit 64dc9cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/simplebar/src/simplebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,8 @@ export default class SimpleBar {
this.axis.y.isOverflowing =
this.elStyles.overflowY === 'hidden' ? false : this.axis.y.isOverflowing;

this.axis.x.forceVisible =
this.elStyles.overflowX === 'scroll' || this.options.forceVisible;
this.axis.y.forceVisible =
this.elStyles.overflowY === 'scroll' || this.options.forceVisible;
this.axis.x.forceVisible = this.options.forceVisible === "x" || this.options.forceVisible === true;
this.axis.y.forceVisible = this.options.forceVisible === "y" || this.options.forceVisible === true;

this.axis.x.scrollbar.size = this.getScrollbarSize('x');
this.axis.y.scrollbar.size = this.getScrollbarSize('y');
Expand Down

0 comments on commit 64dc9cd

Please sign in to comment.