I am currently working on creating a scrollable flexbox within another flexbox that is dependent on a tab selection. As shown in the image above:
https://i.sstatic.net/i0ZYF.png
In the image labeled 1, the box "4" represents my scrollable flexbox, with a tab tool located in the yellow box for selecting elements.
The issue arises when I populate box "4" with numerous entries, causing the page to overflow and only display a small portion of the scroll bar.
Here is my CSS code:
...
My webpage structure looks like this:
...
And here is my JavaScript function:
...
Upon loading the page, everything appears as intended as seen in the image below:
https://i.sstatic.net/16BOx.png
However, upon clicking on Tab1, the layout becomes distorted as shown in the following image which is not the desired outcome:
https://i.sstatic.net/H9tdt.png
How can I correct this behavior with Tab1?