simplebar icon indicating copy to clipboard operation
simplebar copied to clipboard

Double scrollbar

Open cercos opened this issue 3 years ago • 1 comments

Describe the bug Getting the simplebar scrollbar next to the native scrollbar

Expected behavior one scrollbar

I can't seem to figure out why this is happending. HTML

<div class="pane-wrapper">
    <div class="left-pane">
        <div class="temp">2 scrollbars</div>
    </div>
    <div class="center-pane">
    </div>
    </div>
    <div class="right-pane">
    </div>
</div>

CSS

.pane-wrapper {
    display: flex;
    flex: 1;
}

.left-pane, .right-pane, .center-pane {
    overflow-y: auto;
    padding: 0;
    margin:0;
}

.left-pane {
    height: 100vh;
    width: 40vw;
    border-right: 1px #333 solid;
    max-height:100vh;

}

.simplebar-track.simplebar-vertical {
    background-color: orange;
}

JS new SimpleBar($('.left-pane')[0]); double scrollbar

cercos avatar Mar 07 '21 20:03 cercos

Related to this https://github.com/Grsmto/simplebar/issues/473#issuecomment-653741529

ivenuss avatar Dec 04 '21 12:12 ivenuss