Seeking help in creating a scrollable file tree. See the simplified code snippet provided below.
https://jsfiddle.net/3kLmchot/1/
An issue arises when attempting to apply overflow-y: scroll;
to the filebrowse-outer
div, as the initial items become completely invisible. This problem worsens with the addition of more divs.
It appears that items are being placed around the center of the filebrowse-outer
div, causing those at the bottom to be accessible via scrolling while those at the top remain hidden (refer to the visual representation below).
item 1
item 2
center of the div
item 3
item 4
The scroll bar starts appearing around item 2, resulting in item 1 disappearing from view. Can anyone shed light on why this is happening and offer potential solutions?