Skip to content

Commit

Permalink
Hide scrollbars with display instead of visibility
Browse files Browse the repository at this point in the history
Fixes #292.

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Apr 9, 2019
1 parent 0c7659f commit f6ea771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/simplebar/src/simplebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ export default class SimpleBar {

// Even if forceVisible is enabled, scrollbar itself should be hidden
if (this.axis[axis].isOverflowing) {
scrollbar.style.visibility = 'visible';
scrollbar.style.display = 'block';
} else {
scrollbar.style.visibility = 'hidden';
scrollbar.style.display = 'none';
}
}

Expand Down

0 comments on commit f6ea771

Please sign in to comment.