Closed clarkk closed 7 years ago
height:100%;
to be setthanks :)
Ok, I got the first one to work but can't make the second one to work with the outer container..
https://jsfiddle.net/kk1sy7ve/6/
.test-outer {
max-height:100px;
}
.scrollbar_content {
height:100%;
overflow:auto;
}
<h1>Simple outer (content height)</h1>
<div class="test-outer">
<div class="scrollbar-outer scrollbar_content">
<p>
Simple outer scrollbar can be used as CSS base for custom outer scrollbars.
This example shows nested scrollbars functionality: nested scrollbar styles do not
interfere with parent scrollbar styles, i.e. different scrollbars can be safely used
inside each other.
</p>
<p>
Simple outer scrollbar can be used as CSS base for custom outer scrollbars.
This example shows nested scrollbars functionality: nested scrollbar styles do not
interfere with parent scrollbar styles, i.e. different scrollbars can be safely used
inside each other.
</p>
<p>
Simple outer scrollbar can be used as CSS base for custom outer scrollbars.
This example shows nested scrollbars functionality: nested scrollbar styles do not
interfere with parent scrollbar styles, i.e. different scrollbars can be safely used
inside each other.
</p>
</div>
</div>
Yep, you're right, the second one won't work this way. You have to set fixed height to outer container or apply max-height to scrollbar container.
I have copied the examples from https://gromo.github.io/jquery.scrollbar/demo/basic.html but they are not working. What am I missing? I just copied it as it is
https://jsfiddle.net/kk1sy7ve/2/
Have two examples:
scrollbar-outer
hasheight:100px
max-height:100px