HTML structure inside a selected element affecting other #514
-
Im testing scrollbars native behaviour libraries and OverlayScrollbars is by far the best I have found but Im having trouble with a thing.
Im targeting the body element and I cant have this structure on it, I wonder if there is a functionality that lets me create the HTML structure inside a selected element of my own and affect other. It creates successfully the HTML scrollbars structure inside the #target element and apparently affects the body. However my scrollbar remains completely static (it doesnt go down the page as I also scroll down). Im having trouble with this problem for hours and wanted to know if someone can help me here. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here is my complete code if it can help (its a simple one for testing purposes)
|
Beta Was this translation helpful? Give feedback.
-
Good day @tamudosoyyo The scrollbar elements treat its Please try to add dimensions to the |
Beta Was this translation helpful? Give feedback.
Good day @tamudosoyyo
The scrollbar elements treat its
slot
element as their parent. When the scrollbars are rendered they somehow need to know how big in size their track and their handles have to be. They do this by taking the size of theslot
element as the base.Please try to add dimensions to the
#target
element in order to provide proper context to the scrollbars.