You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly I'd like to say that I think this plugin is excellent and, of the many plugins out there designed for this purpose, this is the one I've found the nicest to work with.
If I apply slimScroll to an element with a max-height property set and the contents of that element is smaller in height than the max-height value of its parent, the slimScroll scrollbar is not displayed. Once the contents' height exceeds the parent's max-height value, the scrollbar is displayed. This is exactly as expected.
However, if the parent element has a border - for example border: 1px solid black - the scrollbar is always displayed, even if the contents of the element are not taller than the parent's max-height value and a scrollbar is not required.
I've created a fiddle to demonstrate the problem here. Note that the div has an unnecessary scrollbar at all times, but that if you remove the border property from its style the scrollbar disappears and functions as normal (i.e. if you had more <li> elements the scrollbar will be displayed as expected.
The text was updated successfully, but these errors were encountered:
Firstly I'd like to say that I think this plugin is excellent and, of the many plugins out there designed for this purpose, this is the one I've found the nicest to work with.
If I apply slimScroll to an element with a
max-height
property set and the contents of that element is smaller in height than themax-height
value of its parent, the slimScroll scrollbar is not displayed. Once the contents' height exceeds the parent'smax-height
value, the scrollbar is displayed. This is exactly as expected.However, if the parent element has a border - for example
border: 1px solid black
- the scrollbar is always displayed, even if the contents of the element are not taller than the parent'smax-height
value and a scrollbar is not required.I've created a fiddle to demonstrate the problem here. Note that the
div
has an unnecessary scrollbar at all times, but that if you remove theborder
property from itsstyle
the scrollbar disappears and functions as normal (i.e. if you had more<li>
elements the scrollbar will be displayed as expected.The text was updated successfully, but these errors were encountered: