diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-01-04 16:39:56 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2018-01-09 14:40:20 +0100 |
| commit | 44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c (patch) | |
| tree | c7d0f070656502b694aa8346544e375aa59e8ea0 /app/components/CustomScrollbars.js | |
| parent | 177efaf5829f2da43462e2817d1f0876f6a5064a (diff) | |
| download | mullvadvpn-44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c.tar.xz mullvadvpn-44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c.zip | |
Fix layout issues
Diffstat (limited to 'app/components/CustomScrollbars.js')
| -rw-r--r-- | app/components/CustomScrollbars.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/components/CustomScrollbars.js b/app/components/CustomScrollbars.js index d2f89d5e15..69381f60cd 100644 --- a/app/components/CustomScrollbars.js +++ b/app/components/CustomScrollbars.js @@ -53,10 +53,11 @@ export default class CustomScrollbars extends Component { } render() { + const { autoHide: _autoHide, thumbInset: _thumbInset, children, ...otherProps } = this.props; const showScrollbars = this.state.canScroll && this.state.showScrollIndicators; const thumbAnimationClass = showScrollbars ? ' custom-scrollbars__thumb--visible' : ''; return ( - <div className="custom-scrollbars"> + <div {...otherProps } className="custom-scrollbars"> <div className={ `custom-scrollbars__thumb ${thumbAnimationClass}` } style={{ position: 'absolute', top: 0, right: 0 }} ref={ this._onThumbRef }></div> @@ -64,7 +65,7 @@ export default class CustomScrollbars extends Component { style={{ overflow: 'auto' }} onScroll={ this._onScroll } ref={ this._onScrollableRef }> - { this.props.children } + { children } </div> </div> ); |
